Skip to content

Instantly share code, notes, and snippets.

@bdalziel
Created September 15, 2016 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdalziel/daf5ce4271c52646d5363745cd46425d to your computer and use it in GitHub Desktop.
Save bdalziel/daf5ce4271c52646d5363745cd46425d to your computer and use it in GitHub Desktop.
+ (void)registerLoadingLifecycleCellNibsForReuseIdentifiers:(UITableView *)tableView
{
[tableView registerNib:[UINib nibWithNibName:@"LoadingCell" bundle:[NSBundle mainBundle]] forCellReuseIdentifier:ASPTableCellUtilLoadingCellName];
[tableView registerNib:[UINib nibWithNibName:@"LoadErrorCell" bundle:[NSBundle mainBundle]] forCellReuseIdentifier:ASPTableCellUtilLoadErrorCellName];
[tableView registerNib:[UINib nibWithNibName:@"NoDataCell" bundle:[NSBundle mainBundle]] forCellReuseIdentifier:ASPTableCellUtilNoDataCellName];
[tableView registerNib:[UINib nibWithNibName:@"PlaceholderCell" bundle:[NSBundle mainBundle]] forCellReuseIdentifier:ASPTableCellUtilPlaceholderCellName];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment