scroll或是其子类被添加进view时,界面自动上移

开发中经常会遇到ViewController添加scroll或是其子类被添加进controller.view时,scroll会自动下移大概64像素

解决:

self.edgesForExtendedLayout = UIRectEdgeNone;   //viewController 的所有子视图都会自动调整。

posted @ 2017-08-24 15:32  bokeyuan_dan  阅读(265)  评论(0编辑  收藏  举报