Using SLComposeViewController
The easiest way to post a new message to Twitter or Facebook is to use the SLComposeViewController
. It requires no fiddling with permissions and, if the user has not set up an account, it prompts them to configure one. The downside of SLComposeViewController
is that there is no way to customize the appearance of the view that the user is presented with, as shown in Figure 15.4.
Before anything can be done with SLComposeViewController
, the Social.framework must first be imported into the project. In addition, the header file "Social/Social.h" ...
Get iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.