Graphics Programs Reference
In-Depth Information
More Modal View Controllers
In this part of the chapter, you will update Homepwner to present the DetailViewCon-
troller modally when the user creates a new BNRItem . When the user selects an exist-
ing BNRItem , the DetailViewController will be pushed onto the UINaviga-
tionController 's stack as before.
Figure 13.4 New item
To implement this dual usage of DetailViewController , you will give it a new des-
ignated initializer, initForNewItem: . This initializer will check whether the instance is
being used to create a new BNRItem or to show an existing one. Then it will configure the
interface accordingly.
Search WWH ::




Custom Search