liangdrime/SwipeTableView

请问下作者,为何 header 上会空一大片出来

Closed this issue · 1 comments

1

- (STHeaderView *)tableViewHeader {
    if (!_tableViewHeader) {
        _tableViewHeader = [[STHeaderView alloc]init];
        _tableViewHeader.frame = CGRectMake(0, 0, kScreenWidth, 200);
        _tableViewHeader.backgroundColor = [UIColor themeColor];
        _tableViewHeader.autoresizingMask = UIViewAutoresizingFlexibleHeight;
        
        UILabel * title = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 200, 30)];
        title.textColor = [UIColor whiteColor];
        title.font = [UIFont boldSystemFontOfSize:17];
        title.text = @"Test Case";
        title.textAlignment = NSTextAlignmentCenter;
        
        [_tableViewHeader addSubview:title];
    }
    return _tableViewHeader;
}

你好,请问问题解决了吗?