comparing indexPaths in a loop iphone

Posted by Brodie4598 on Stack Overflow See other posts from Stack Overflow or by Brodie4598
Published on 2010-05-19T14:04:08Z Indexed on 2010/05/19 14:40 UTC
Read the original article Hit count: 227

Filed under:
|
|
|

I am trying to compare an index path in my didSelectRowAtIndexPath delegate method with an array of index paths.

for (n=0; n < [tempMutArrray count]; n= n+1){

     NSComparisonResult *result = [indexPath compare:[tempMutArray objectAtIndex:n];

//What I want to do is is write an if statement that executes a certain block of code 
//if the two index paths are equal, but I cant figure out how to work with an 
//NSComparisonResult. 

} 

© Stack Overflow or respective owner

Related posts about iphone

Related posts about ipad