self.automaticallyAdjustsScrollViewInsets = NO; //在当前VC内修改这个属性就可以解决这个问题了。

 

当前以TableView为主View的ViewController,在设置TableView的Inset的时候,会遇到一个问题。(我就被这问题给困住了蛮久的 -_-###)

 

iOS automaticallyAdjustsScrollViewInsets

 

系统会『很聪明』地为我们调整tableView的inset,但是在你需要完全把控这个属性的时候,它这就是在添乱!!!

 

 

 


 

 

参考资料:

http://www.2cto.com/kf/201507/420301.html

http://www.cnblogs.com/ritian/p/5248451.html

 

相关文章:

  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
  • 2021-04-30
  • 2021-07-05
  • 2022-12-23
  • 2021-11-03
  • 2021-11-19
猜你喜欢
  • 2021-12-28
  • 2022-12-23
  • 2021-10-25
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案