您的位置:首页 > 其它

表格

2015-06-30 16:19 211 查看


设置列表滚动位置

 [myTableView scrollToRowAtIndexPath:[NSIndexPath
indexPathForRow:0
inSection:0] atScrollPosition:UITableViewScrollPositionBottom animated:NO];
    [self
resignFirstResponder];
    
    在viewWillAppear里面添加如下代码:
    //分组列表头部空白处理
    CGRect frame = myTableView.tableHeaderView.frame;
    frame.size.height = 0.1;
    UIView *headerView = [[UIView alloc] initWithFrame:frame];
    [myTableView setTableHeaderView:headerView];

//解决cell重用
    while ([cell.contentView.subviews lastObject] !=
nil) {
        [(UIView *)[cell.contentView.subviews lastObject] removeFromSuperview];
    }
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: