Have you guys stumbled up on this issue ?

Basically in iOS 7 Navigation Controller is rendered over the sub-view I navigated to.

In iOS 6 view I navigate to is enclosed between navigation bar and footer. In iOS 7 it looks like sub-view is rendered full-screen, under navigation bar and footer. As result user don't see it.

Here is how I navigate to subview

BRSMyListSubViewController*tagsInfoVC =[[BRSMyListSubViewController alloc] initWithCheckinsList:self.checkinsList
selectedTag:[self tagByIndexPath:indexPath]];[self.navigationController pushViewController:tagsInfoVC animated:YES];

Here is how I initialize it in viewDidLoad

self.navigationItem.leftBarButtonItem =[[UIBarButtonItem alloc] initWithTitle:@"Settings" style:UIBarButtonItemStyleBordered target:self action:@selector(settings:)];

self.navigationItem.rightBarButtonItem =[[UIBarButtonItem alloc] initWithTitle:@"Logout" style:UIBarButtonItemStyleBordered target:self action:@selector(logout:)];

For what it's worth I should also mention that sub-view is defined in XIB using Autolayout. Here is source of my XIB: http://pastebin.com/6RR0zYu4

And finally here is how it looks in iOS 6

And in iOS 7

Any thoughts ?

asked Aug 29 at 4:09
ruslan
3,42211555
  add comment

Well, I figured it out.

In your sub-view (BRSMyListSubViewController in my case), in viewDidLoad, you need to set one of these two

self.edgesForExtendedLayout =UIRectEdgeNone;
self.automaticallyAdjustsScrollViewInsets = NO;

OR

self.edgesForExtendedLayout =UIRectEdgeNone;
self.extendedLayoutIncludesOpaqueBars = YES;

Interestingly enough in root view controller these value are set to default UIRectEdgeAllNO andYES respectively but its tableView is NOT under navbar and footer.

I don't know why it's so illogical.

It's also strange that edgesForExtendedLayout has to be mixed with one of two other properties even though it's clearly responsible for the behavior.

answered Aug 29 at 5:29
ruslan
3,42211555
 
  upvote
  flag
Thank you for putting the answer, it really helped me. – titicaca Sep 12 at 6:11

最新文章

  1. gson基本使用
  2. python基础整理笔记(六)
  3. mysql源码解读之事务提交过程(一)
  4. win7旗舰版 中文64位 产品密钥(序列号)
  5. Android activity跳转方式
  6. [自制简单操作系统] 2、鼠标及键盘中断处理事件[PIC\GDT\IDT\FIFO]
  7. Oracle Cluster Registry Location to be Added is not Accessible
  8. hdu 1175 连连看 (广搜,注意解题思维,简单)
  9. Python urllib2 模块学习笔记
  10. Mysql参数详解
  11. JavaScript可以这样用
  12. 关于类似于自动填充搜索框的DEMO
  13. C# 在本地创建文件夹及子文件夹
  14. java 接口与实现
  15. js华氏度转为摄氏度
  16. 老李推荐:第8章3节《MonkeyRunner源码剖析》MonkeyRunner启动运行过程-启动AndroidDebugBridge 3
  17. 交换基本数据类型的方法swap,并影响到主方法
  18. 201521123013 《Java程序设计》第5周学习总结
  19. Charle抓包与wireshark使用
  20. c++学习笔记---06--- 函数的重载

热门文章

  1. CentOS 7 : Docker私有仓库搭建和使用
  2. Ubuntu的复制粘贴操作及常用快捷键(摘自网络)
  3. Tomcat服务器下 catalina.out 日志开关
  4. linux 查看系统信息和安装哪些软件的命令
  5. shell 脚本基础知识详细介绍(二)
  6. FPGA层次结构和复位策略
  7. TCP,你懂的
  8. 如何用FFmpeg API采集摄像头视频和麦克风音频,并实现录制文件的功能
  9. 1056 Mice and Rice
  10. Flask之数据库迁徙