Changes

Jump to: navigation, search

Integrating Twitter and Facebook into iOS 7 Applications

12 bytes added, 20:42, 1 February 2016
m
Text replacement - "<google>BUY_IOS7</google>" to "<htmlet>ios9_upgrade</htmlet>"
<googlehtmlet>BUY_IOS7ios9_upgrade</googlehtmlet>
In the event that the user has not yet configured an account for the selected social network in the Settings application, a dialog will appear providing the option to either set up an account or cancel the post.
<googlehtmlet>BUY_IOS7ios9_upgrade</googlehtmlet>
The assumption is generally made that at the point an instance of UIActivityViewController is created, the application will already have gathered together the text and images that are to be included in the post. These items need to be placed into an NSArray object and passed to the controller before it is presented to the user. The following code excerpt, for example, instantiates a UIActivityViewController instance primed with text and an image to be included in the post and presents it to the user:
NSString *postText = @”My first Facebook post from iOS 7”;
<googlehtmlet>BUY_IOS7ios9_upgrade</googlehtmlet>

Navigation menu