Created
August 8, 2011 15:01
-
-
Save TonnyXu/1131908 to your computer and use it in GitHub Desktop.
NSIndexPath is uniqued and shared.
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
#define myIndexPath [NSIndexPath indexPathForRow:2 inSection:1] | |
NSAssert(myIndexPath == [NSIndexPath indexPathForRow:2 inSection:1], @"they should be the same object"); | |
// omitted code from UITableView -cellForRowAtIndexPath: | |
if (myIndexPath == systemIndexPath){ | |
// my cell, show my contents | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment