How to position UITableViewCell at bottom of screen?

前端 未结 14 587
旧时难觅i
旧时难觅i 2020-12-08 03:25

There are one to three UITableViewCells in a UITableViewView. Is there a way to always position the cell(s) at the bottom of screen after rel

14条回答
  •  庸人自扰
    2020-12-08 03:46

    Call this method whenever a row is added:

    - (void)updateContentInset {
        NSInteger numRows=[self tableView:_tableView numberOfRowsInSection:0];
        CGFloat contentInsetTop=_tableView.bounds.size.height;
        for (int i=0;i

提交回复
热议问题