Prefer Large Titles and RefreshControl not working well

后端 未结 11 2198
野性不改
野性不改 2020-12-29 05:09

I am using this tutorial to implement a pull-to-refresh behavior with the RefreshControl. I am using a Navigation Bar. When using normal titles eve

11条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-29 05:58

    The only solution that worked for me using XIBs was Bruno's one: https://stackoverflow.com/a/54629641/2178888

    However I did not want to use a XIB. I struggled a lot trying to make this work by code using AutoLayout.

    I finally found a solution that works:

        override func loadView() {
            super.loadView()
            let tableView = UITableView()
            //configure tableView
            self.view = tableView
        }
    

提交回复
热议问题