search

Home  >  Q&A  >  body text

ios - 控制器dismiss回来出现的问题

tab控制的两个可切换界面,其中一个presentViewController后,dismiss回来,该界面的tableView位置上移,起点在导航栏的位置了,能怎么解决吗,求大神解答。

PHPzPHPz2893 days ago421

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-04-18 09:26:01

    In fact, the simple thing is to reset the frame of the tableView after dismissing it, and the problem will be solved. But this estimate may be related to the tableView's contentInset, contentOffset and other attributes. You can try printing it, and finally debug the specific position yourself, and it should be able to be solved.

    reply
    0
  • Cancelreply