Created
April 23, 2014 09:12
-
-
Save shuizhongyueming/11208201 to your computer and use it in GitHub Desktop.
cellForRowAtIndex时,使用到的可重用的cell
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
SomeCell * cell = [tableView dequeueReusableCellWithIdentifier:@"someIdentifier"]; | |
if(cell == nil){ | |
cell = [[SomeCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"someIdentifier"]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment