Lab 9 - Text Input and Presenting Content Modally

Objectives

You will extend your lab8 project to allow the user to perform status updates

  1. We want a StatusComposeViewController to be presented modally to allow the user to type and send status updates.  The first thing we need is to add a Display button on the right side of the navigation bar when the person list controller is visible.  This will be a UIBarButtonItem which you can initialize with the initWithBarButtonSystemItem:
     
  2. When the button is pressed it should present the StatusComposeViewController modally.  The StatusComposeViewController should have a textfield and two UIBarButtonItems which will allow the user to either cancel the action or send the status update to Twitter.  Have the delegate dismiss the view when either of these buttons is pressed.  In order to have a navigation bar on the StatusComposeViewController you can package it inside a navigation controller and then present the navigation controller modally.  Just create a navigation controller and initialize it with initRootviewController: statusComposeViewController.
     
  3. New TwitterHelper and JSON files have been provided which will let you updateStatus in Twitter.  Make sure that this update is done in a separate thread.  The [TwitterHelper updateStatus: forUsername: withPassword:]  requires a valid username and password.  You can hard code these values to your real Twitter account (if you have one) or just create one for testing.  Either way, remove your username and password from your project before submitting and make sure that I can easily configure a username and password for testing.
     
  4. Compress your project and send it to me through the Dropbox in BlackBoard.