ios7 下 在scrollView添加View 然后push再返回 发现前后页面控件位置发生偏移,不知道什么原因
高洛峰
高洛峰 2017-04-17 17:45:30
0
5
342

我是在一个navigation controller - Tab controller - navigationcontroller- viewcontroller 再push到子界面,我是在tab controller里首页贴合view加了个scrollview,再在scrollview里加了view,scrollview里的view和控件都是按self.view来设置约束的,然后控件push返回的时候造成前后页面控件位置发生变化,不知道什么原因,是因为tabBarcontroller 里有两个导航栏控制器吗?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(5)
伊谢尔伦
self.automaticallyAdjustsScrollViewInsets = NO;

Try setting it up on all pages?

Peter_Zhu

Has the poster solved this problem? I encountered it today and I’m so confused

Peter_Zhu

Page layout problem? Maybe try tabController first, then navgitionController? Add navgitionController to tabController?

伊谢尔伦

It’s the first time I see nav and add tab, and tab and nav

PHPzhong

Just post the code without saying anything

  • (void)viewWillAppear:(BOOL)animated {

    [super viewWillAppear:animated];
    self.automaticallyAdjustsScrollViewInsets = NO;
    
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template