Created
March 21, 2014 03:31
-
-
Save tonysherbondy/9678982 to your computer and use it in GitHub Desktop.
How I'm instantiating my prototype cell and causing an infinite loop
This file contains 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
-(ResultTableViewCell *)prototypeResultCell | |
{ | |
// lazily instantiate and hold onto the prototype | |
if (!_prototypeResultCell) { | |
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0]; | |
_prototypeResultCell = [self.tableView dequeueReusableCellWithIdentifier:@"ResultTableViewCell" forIndexPath:indexPath]; | |
} | |
return _prototypeResultCell; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment