NSUInteger row = [indexPath row];

iOS 码拜 9年前 (2015-05-06) 434次浏览 0个评论
 

我最近在学iphone,【listdata objectAtIndex:row】我就理解为【对象 方法 方法参数】,但是row不是indexPath 的方法啊,这句话怎么理解?

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

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明NSUInteger row = [indexPath row];
喜欢 (0)
[1034331897@qq.com]
分享 (0)

文章评论已关闭!