tableview Footerview有多余的间距

调整footerView的高度

        UIView *footerV = [[UIView alloc] initWithFrame:CGRectMake(0, 0, Main_Screen_Width, 1)];
        UILabel *footerLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 20, Main_Screen_Width, 10)];
        [footerV addSubview:footerLabel];
        footerLabel.text = @"已经到底啦~";
        footerLabel.textAlignment = NSTextAlignmentCenter;
        footerLabel.textColor = RGBCOLOR(150, 150, 150);
        footerLabel.font = [UIFont boldSystemFontOfSize:13];
        self.tableView.tableFooterView = footerV;

 

posted on 2019-04-10 07:04  土匪7  阅读(297)  评论(0编辑  收藏  举报