Presence - Part 4
This assignment is due by 11:59 PM on Wednesday, November 12.
This is the last week of the multi-part Presence project. At this point, we’re fetching live data
using web services, displaying it using table views, using threads to avoid hanging the user
interface and allowing the user to update their own status using a modal view controller.
This week, we’ll add some finishing touches. We’ll add some new modes to the application,
allowing the user to toggle between them by combining navigation controllers with a tab bar
controller. We’ll integrate with the system Address Book to better connect with our user’s data.
And we’ll add a search feature for querying Twitter requests.
Here are the requirements for Part 4:
Instantiate a tab bar controller in your application delegate. Add its view to the window,
rather than the navigation controller’s view.
Tab bar controllers manage an array of view controllers. One of these should be our
existing navigation controller, with the PersonListViewController at the bottom of the stack.
3. Create a new view controller that displays users from the public Twitter timeline. For this
view controller, rather than reading usernames from the TwitterUsers property list, request
them using the new +[TwitterHelper fetchPublicTimeline] method. As usual, don’t block
the main thread!
4. Create a third view controller that allows searching all Twitter status updates. Use a table
view with a UISearchBar as its table header view. See the example from Lecture 14 if you’re
not sure how to do this. There’s another new method to take care of making a search
request, +[TwitterHelper fetchSearchResultsForQuery:]. All you need to do is display a list
of matching status updates in a table view.
Finally, we’d like to integrate with the system Address Book. For each person in a person
list (both for the TwitterUsers list and public timeline), customize the cell accessory type to
display a blue disclosure button. Selecting a row will still