The SLCompose class presents a view to the user to compose a post for supported social networking services.
SDK
- iOS 6.0+
Framework
- Social
Declaration
class SLComposeViewController : UIView Controller
Overview
Use the is class method to check if a service account, such as Twitter, is set up and reachable before presenting this view to the user.
Set the initial content before presenting the view controller to the user. All the methods that set the content of a post return a Boolean value. They return false if the content doesn’t fit in the post or if the view controller has already been presented to the user. You must set all of the content in the post before presenting the view controller to the user. After presenting the view controller, only the user can edit the post.
You can set a handler—using the completion property—to be notified when the user is done composing a post. Note that completion handlers are not called on any particular thread.