IOS之7版本适配UITableVIew与UINavigationController

来源:互联网 发布:淘宝手机版怎么贷款 编辑:程序博客网 时间:2024/06/08 00:24

在ios7上,创建一个UITableView的controller,并套在UINavigationController上,出现视图上移,在navbar的后面了。
1.

float systemVersion = [[[UIDevice currentDevice] systemVersion] floatValue];    if (systemVersion >= 7.0) {        self.edgesForExtendedLayout = UIRectEdgeNone;    }

2

self.navigationController.navigationBar.translucent = NO;

这样,controller中的view就在nabber下面了,不会被藏起来了。

0 0
原创粉丝点击