I am diving into the iPhone OS development and I am trying to understand that I am "Left / Root" View of the SplitView iPad app I have realized how to program a table view for that view based on the example code found in the online documentation of the apple ...
RootViewController.h < / Strong>
@interface RootViewController: UITableViewController & lt; NSFetchedResultsControllerDelegate, UITableViewDelegate, UITableViewDataSource & gt; {Details ViewController * detailViewController; UITableView * tableView; NSFetchedResultsController * fetchedResultsController; NSManagedObjectContext * managedObjectContext; }} >> RootViewController.m - (zero) load view {UITableView * newTableView = [[UITableView alloc] initWithFrame: [[UIScreen main screen] ApplicationFrame] Style: UITableViewStylePlain]; NewTableView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth; NewTableView.delegate = self; NewTableView.dataSource = self; [Newtablesviewloadload data]; Self.view = newTableView; [Newlylevelview release]; }
But there are some things that I do not understand about this and I was hoping that the legends can help you overcome some confusion.
- Statement
self.view = newTableView
, I think I am setting a complete UITableView view. If so, how do I add additional visual objects in that scene with table view? For example, if I want to place DatePicker View object and TableView object instead of a TablePiew object, how do I add the program? - Referring to the above code, how can I change the size of the table view? DatePicker to create a place for visual objects that I would like to add?
Thank you very much for your help! I will continue researching these questions right now.
Create a container view that you see in view of your controller, then the sub-views in this container view See as.
Comments
Post a Comment