UITableViewController not scrolling view when keyboard appears

前端 未结 4 1633
南旧
南旧 2020-12-14 10:17

I have a UITableViewController with around 20 static cells, some of these cells have UITextFields within them and some are just for selecting with

4条回答
  •  长情又很酷
    2020-12-14 11:10

    Make sure that if you are overriding viewWillAppear that you call

    [super viewWillAppear:animated];
    

    If you don't, the Scroll View will not scroll up properly.

    Swift

    super.viewWillAppear(animated)
    

提交回复
热议问题