Created
January 17, 2013 08:50
-
-
Save jlcampana/4554634 to your computer and use it in GitHub Desktop.
Eliminar celdas vacías al final de una tableview
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)numberOfSectionsInTableView:(UITableView *)tableView | |
{ | |
// Return the number of sections. | |
return 1; | |
} | |
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section { | |
//This is just for avoiding separation lines in empty rows (needs "numberOfSectionsInTableView") | |
if ([self numberOfSectionsInTableView:tableView] == (section+1)){ | |
return [UIView new]; | |
} | |
return nil; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment