Social lets you compose and post content to social networks from your iOS and macOS apps using share-sheet view controllers and signed service requests. Present SLComposeViewController to display a standard composition sheet for a given service, and inspect the SLComposeViewControllerResult to determine whether the user posted or cancelled. For app extensions, subclass SLComposeServiceViewController and supply SLComposeSheetConfigurationItem instances to customize the sheet. To call a social network's web service directly, build an SLRequest with the appropriate SLRequestMethod and send the signed request.
Composing Posts 2
Present a standard composition sheet so people can post content to a supported social network.
- ClSLComposeViewControlleriOS 6.0+A view controller that presents a standard sheet for composing and posting to a supported social network.
- EnSLComposeViewControllerResultConstants that indicate whether the user posted or cancelled the composition sheet.
Share Extensions 2
Build a Share extension by subclassing the compose service controller and customizing its configuration items.
- ClSLComposeServiceViewControlleriOS 8.0+A view controller you subclass to implement a Share extension's social composition interface.
- ClSLComposeSheetConfigurationItemiOS 8.0+An object that defines a configurable option row, such as an account or audience, in a Share extension's compose sheet.
Service Requests 2
Construct and send signed requests directly to a social network's web service.
- ClSLRequestiOS 6.0+An object that builds and sends a signed HTTP request to a social network's web service.
- EnSLRequestMethodConstants that specify the HTTP method used when sending a social service request.
Type Aliases 3
- TySLComposeSheetConfigurationItemTapHandler
- TySLComposeViewControllerCompletionHandler
- TySLRequestHandler