CHAPTER 7 ANSWERS

 
  1. To add a new framework to a project:
    1. Select the Project from the Project Navigator.
    2. Select the General settings editor.
    3. In the Linked Frameworks and Libraries section click the + button and select the desired framework from the dialog.
  2. The MFMailComposeViewController requires the MessageUI.framework to be added to the project.
  3. 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.
  4. 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.
  5. The social networking services integrated in iOS are Twitter, Facebook, Flickr, and Vimeo, as well as Weibo in Asia.
  6. Users sign into their social networking accounts in the Settings app.
  7. To prevent the Bands app from sharing the band picture on Flickr using the UIActivityViewController:
    1. Create an NSArray that includes the UIActivityTypePostToFlickr constant.
    2. Call the setExcludedActivityTypes: method of the UIActivityViewController and pass in the NSArray.