How to manipulate the master in an SplitView iPad app?
I created a Split View-based application with Xcode 4. Now I get how the content is populated and how information is pushe开发者_如何学JAVAd to the detail view, but is there any way to actually manipulate the master view, i.e. add a row to the table?
In all the tutorials I found, this is not explained and I'm kinda confused. :-)
Thanks and regards Julian
Your master view is yet another UITableViewController
, so managing the table is done in its configureCell:atIndexPath:
method.
This tutorial is step by step introduction to UISplitView
.
The rows are added according to what you populate the table with. I’m not quite sure what you mean by the “master view.” Is this the window/view controller you’re using for a data source?
You might want to look into Beginning iPhone Development, by Dave Mark and Jeff LaMarche, which goes into exhaustive detail on navigation controllers and how to populate their child views. The principles are pretty much the same in Cocoa.
精彩评论