Skip to content

Instantly share code, notes, and snippets.

@sgoodwin
Created November 19, 2012 19:15
Show Gist options
  • Save sgoodwin/4112991 to your computer and use it in GitHub Desktop.
Save sgoodwin/4112991 to your computer and use it in GitHub Desktop.
UITableViewDataSource method with switches.
- (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