我最近在学iphone,【listdata objectAtIndex:row】我就理解为【对象 方法 方法参数】,但是row不是indexPath 的方法啊,这句话怎么理解? |
|
![]() |
NSUInteger row = [indexPath row];
|
![]() 40分 |
NSIndexPath在UIKit里增加了row,section两个方法,具体看文档
|
![]() |
我在苹果的http://developer.apple.com/library/ios/#documentation/Cocoa/Reference/Foundation/Classes/NSIndexPath_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40003667
网站上怎么没查到这个row方法呢?他这个不是官方网站吗?应该也是随时更新的啊。。 既然是方法,那么我就弄明白了这句话了。。 |
![]() |
找到了,谢谢darkdong!
|