如何让view遮住navigationbarview

如何让view遮住navigationBar_百度知道
如何让view遮住navigationBar
我有更好的答案
进这个页面时,在window上addsubview解决方法.进这个页面时,在navigationBar上addsubview,退出时记着移除2:1
采纳率:93%
来自团队:
为您推荐:
其他类似问题
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。博客访问: 497715
博文数量: 272
博客积分: 7033
博客等级: 少将
技术积分: 2633
注册时间:
IT168企业级官微
微信号:IT168qiye
系统架构师大会
微信号:SACC2013
使UINavigationBar透明,TableView在其下面,可以扩大UITableView的视野.1)&&&&&&& UIView *headerView = [[UIView alloc] initWithFrame: CGRectMake(0, 0, 320, 44)];&&&&&&& m_tableView.tableHeaderView = headerV&&&&&&& 2)&& &&&& m_tableView.contentInset = UIEdgeInsetsMake(44, 0, 0, 0);&&&&&&& m_tableView.scrollIndicatorInsets = UIEdgeInsetsMake(44, 0, 0, 0);
阅读(2140) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
请登录后评论。ios7适配--navgationbar遮住下面view的处理 - Mr 布鲁斯 - 博客园
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:&
And finally here is how it looks in iOS 6
And in iOS 7
Any thoughts ?
3,42211555
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;
self.edgesForExtendedLayout =UIRectEdgeNone;
self.extendedLayoutIncludesOpaqueBars = YES;
Interestingly enough in root view controller these value are set to default&UIRectEdgeAll,&NO&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.
3,42211555
随笔 - 408
评论 - 109
Trackbacks - 0iOS 添加全屏遮盖图,能遮住navigationBar和tabBar - 简书
iOS 添加全屏遮盖图,能遮住navigationBar和tabBar
[[UIApplication sharedApplication].keyWindow addSubview:_view];一行代码解决,_view为遮盖图。侧栏和alert为手写demo。
专注于移动开发,分享技术,共享快乐。
我的开源:https://github.com/paradisery
1、禁止手机睡眠 [UIApplication sharedApplication].idleTimerDisabled = YES; 2、隐藏某行cell - (CGFloat)tableView:(UITableView *)tableView heightForRow...
用两张图告诉你,为什么你的 App 会卡顿? - Android - 掘金 Cover 有什么料? 从这篇文章中你能获得这些料: 知道setContentView()之后发生了什么? ... Android 获取 View 宽高的常用正确方式,避免为零 - 掘金 相信有很多...
1,Search Bar 怎样去掉背景的颜色(storyboard里只能设置background颜色,可是发现clear Color无法使用)其实在代码里还是可以设置的,那就是删除背景view[[self.searchBar.subviews objectAtIndex:0...
1、禁止手机睡眠[UIApplication sharedApplication].idleTimerDisabled = YES; 2、隐藏某行cell (CGFloat)tableView:(UITableView *)tableView heightForRowAtI...
用到的组件1、通过CocoaPods安装项目名称项目信息 AFNetworking网络请求组件 FMDB本地数据库组件 SDWebImage多个缩略图缓存组件 UICKeyChainStore存放用户账号密码组件 Reachability监测网络状态 DateTools友好...
现在是知识爆炸的时代,知识过载,有时不是不愿选择,而是选择太多无从下手。就像你不会做菜,上网去找一道菜的做法,你会发现一道菜竟然会有十几二十种做法,而且都把详细步骤写在上面,甚者更是将制作过程以图片或者视频呈现出来,这时的你该怎么选择,是每次尝试一种新做法,还是怎样? 00...
文|贝小籽 电视剧《我的前半生》热播,35岁的全职太太罗子君,穿几万块的定制款鞋子,平时的生活就是刷刷剧逛逛街,家务有保姆承包,儿子乖巧可爱,老公事业有成,简直是所有女人的终极梦想,当然,前提是老公没有出轨,一切花好月圆岁月静好。 老公看上了更老更丑还带着拖油瓶的小三,毅然...
这套流程将犯错的可能性降到了最低。 提及网易游戏的美术,在许多从业者心中,都会浮现出类似《梦幻西游》的,Q萌风格的产品。 但另一方面,无论是《天下3》、《镇魔曲》等端游,还是采用大包体战略的《Raven:掠夺者》、《天下》和《永恒文明》等手游,都表明网易是国内为数不多的,有...
什么是产品经理? 产品经理(Product Manager),即PM是负责产品按时完成、发布并在整个产品生命周期中占据重要角色的专职管理人员。任务包括挖掘用户需求、设计产品功能;协调好研发、测试、文档、市场、销售等部门的人,及时沟通及时跟进;通过需求分析、竞品分析等研究产品...
今天的Field trip是秋天主题,青西郊野公园游玩。 天气预报今天气温20-29度,空气质量良。 蓝天白云下,田里水稻的谷粒已经长出,但还是青青的,齐刷刷的立着。满塘的残荷,荷花基本都找不到了。 我们租了两辆自行车,一路骑行。 小娃娃下车时说了一句荒郊野外,但她很快就找...他的最新文章
他的热门文章
您举报文章:
举报原因:
原文地址:
原因补充:
(最多只允许输入30个字)

我要回帖

更多关于 navigationview 宽度 的文章

 

随机推荐