已读55%
预计阅读本页时间:-
预计阅读本页时间:-
CHAPTER 7 ANSWERS
- To add a new framework to a project:
- Select the Project from the Project Navigator.
- Select the General settings editor.
- In the Linked Frameworks and Libraries section click the + button and select the desired framework from the dialog.
- The MFMailComposeViewController requires the MessageUI.framework to be added to the project.
- The MFMessageComposeViewController requires the MobileCoreServices.framework to be added to the project in order to use the Universal Type constants when attaching images or other media types to a text message or iMessage.
- You need to call the canSendText method to verify the device can send text messages or iMessages. If you do not and try presenting the MFMessageComposeViewController, the app will crash.
- The social networking services integrated in iOS are Twitter, Facebook, Flickr, and Vimeo, as well as Weibo in Asia.
- Users sign into their social networking accounts in the Settings app.
- To prevent the Bands app from sharing the band picture on Flickr using the UIActivityViewController:
- Create an NSArray that includes the UIActivityTypePostToFlickr constant.
- Call the setExcludedActivityTypes: method of the UIActivityViewController and pass in the NSArray.