Created
November 19, 2012 19:15
-
-
Save sgoodwin/4112991 to your computer and use it in GitHub Desktop.
UITableViewDataSource method with switches.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section | |
{ | |
switch(section){ | |
case 0: | |
return 2; | |
break; | |
case 1: | |
return [self.items count]; | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment