Graphics Programs Reference
In-Depth Information
Build and run the application. When you change between feeds, you will see the activity
indicator spin briefly while the request is processing. Also, notice how the block takes
ownership of the
UISegmentedControl
that was the
titleView
of the navigation
item so that it can put it back into the navigation item once the request has completed.
Pretty neat, huh?
We've done a lot of work so far in this chapter. It may seem like overkill since we already
had a working application, but as the application becomes larger in the next two chapters,
the changes we've made will really pay off. Consider already how easy it was to add sup-
port for JSON data - we didn't even touch
ListViewController
! In the next
chapter, we'll do a bit more work with
BNRFeedStore
and then explain some best prac-
tices and guidelines for using store objects.