網頁

2012年7月22日 星期日

indexPathForSelectedRow

查看點擊哪個section

 NSInteger selectedSection = [[self.mainTableView indexPathForSelectedRow] section];
NSLog(@"selectedSection-> %d",selectedSection);


查看點擊section第幾個選項

NSInteger selectedIndex = [[self.mainTableView indexPathForSelectedRow] row]; NSLog(@"selectedIndex-> %d",selectedIndex);

沒有留言:

張貼留言

注意:只有此網誌的成員可以留言。