由于UITableView继承自UIScrollView,表视图可以滚动展示大量的表格信息。
查看答案
解释下面代码段的功能: - (NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath: (NSIndexPath *)indexPath{ NSInteger row=indexPath.row;if (row==3) {return nil; }return indexPath; }
解释下面代码段的功能: NSBundle *bundle = [NSBundle mainBundle]; NSString *filePath = [bundle pathForResource:@"departInfo" ofType:@"plist"]; NSDictionary *allData = [[NSDictionary alloc] initWithContentsOfFile:filePath];
解释下面代码段的功能: -(CGFloat) tableView:(UITableView *)tableViewheightForRowAtIndexPath:(NSIndexPath *)indexPath {return 50;}