UITableView in UINavigationController gets under Navigation Bar after rotation

前端 未结 8 874
清酒与你
清酒与你 2020-12-21 06:10

This is Portrait:

This is Landscape

I\'ve tried this on rotation with no success:

self.tableView.autoresizesSubviews = YE         


        
8条回答
  •  臣服心动
    2020-12-21 06:53

    I looks like the table view is scrolled down a little after the orientation change.

    Have you tried calling scrollToRowAtIndexPath:atScrollPosition:animated: and scrolling to the top-most row?

提交回复
热议问题