Using a UITableViewController with a small-sized table?

后端 未结 11 1264
一生所求
一生所求 2020-12-31 05:51

When using a UITableViewController, the initWithStyle: method automatically creates the underlying UITableView with - according to the documentation - \"the correct dimensio

11条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-31 06:29

    i fixed this problem by this code

    {
        UIEdgeInsets insets;
        insets.left = 0;
        insets.right = 0;
        insets.top = 0;
        insets.bottom = 60;
        self.tableView.contentInset = insets;
        [self.tableView setScrollIndicatorInsets:insets];
    }
    

提交回复
热议问题