jjzjj

indexPathSelected

全部标签

ios - 比较 NSIndexPath

这将是一件非常愚蠢的事情,但我的cellForRowAtIndexPath中有这段代码:if([self.indexPathSelectedcompare:indexPath]==NSOrderedSame){NSLog(@"%d%d%d%d",self.indexPathSelected.row,self.indexPathSelected.section,indexPath.row,indexPath.section);}这打印:000000100020003000400050我原以为它只会打印0000。我在这里做错了什么? 最佳答案

ios - 比较 NSIndexPath

这将是一件非常愚蠢的事情,但我的cellForRowAtIndexPath中有这段代码:if([self.indexPathSelectedcompare:indexPath]==NSOrderedSame){NSLog(@"%d%d%d%d",self.indexPathSelected.row,self.indexPathSelected.section,indexPath.row,indexPath.section);}这打印:000000100020003000400050我原以为它只会打印0000。我在这里做错了什么? 最佳答案