在对应的控制器中设置下面属性 self.automaticallyAdjustsScrollViewInsets = NO; 这样就好了。 转载于:https://www.cnblogs.com/wujie123/p/5888598.html