iphone - How do I build UITableViewGrouped in a Modal View? -


I want to create a grouped view in the model view, which is the destination from "+" on the navigation bar in the main table view.

I have written this code:

  - (zero) viewDidoadload {// titled self.title = @ "Set"; // addBtn UIBarButtonItem * addBtn = [[UIBarButtonItem alloc] initWithBarButtonSystemItem: UIBarButtonSystemItem Add target: auto-operation: @selector (toggle editing)]; Self.navigationItem.rightBarButtonItem = addBtn; [ADBTN release]; } - {IBAction} toggleEditing {}    

  1. create a subclass UITableViewController named MyTableViewController

    's name Enter image description here:> </ p> </ li> <li> <p> Usage <code> presentModalViewController: Animated: </ code> Controller in your current view </ p> <pre> <code> - ( IBAction) toggleEditing {MyTableViewController * tableViewController = [[[MyTableViewController alloc] initWithStyle: UITableViewStyleGrouped] autorelease]; [Self current model visualizer: animated table view controller: yes]; } And </ li> </ li> </ li> </ li> </ li> </ li> </ li> </ li> </ li> </ li> </ li> </ li> </ li> </ li> </ li> </ li> </ li> Where a line was selected. </ P> </ div> </ html><br /><br /> 
<script type=

Comments