Creating a UIView that sticks to bottom of UITableView

前端 未结 7 645
一个人的身影
一个人的身影 2021-01-05 06:47

I have a grouped UITableView and I\'d like to add a UIButton to the very bottom of my UITableView. I\'m using Storyboard and a UITableViewControlle

7条回答
  •  孤街浪徒
    2021-01-05 07:09

    There is one way to add views to the bottom of UITableViewController without using a UIViewController subclass.

    UIView *footerView = [[UIView alloc] initWithFrame:CGRectMake(0, footerY, footerWidth, footerHeight)];
    [self.navigationController.view addSubview:footerView];
    

    Hope this help!

提交回复
热议问题