Graphics Programs Reference
In-Depth Information
return <#number of rows#> ;
}
Then fill out the rest of the fields in the edit window as shown in Figure 9.19 and click
Done .
Figure 9.19 Creating a new snippet
Back in ItemsViewController.m , start typing tablerows . Xcode will recom-
mend this code snippet and pressing the return key will automatically complete it for you
- and the number of rows placeholder will be selected. You'll have to type in the
code to get the number of rows yourself. Snippets aren't magical - just handy.
Before continuing, make sure to remove the code entered by the snippet because you have
already defined tableView:numberOfRowsInSection: in ItemsViewCon-
troller.m .
 
Search WWH ::




Custom Search