mono touch中去掉NavigationBar的底部阴影
来源:互联网 发布:牛客网 大数据面试题 编辑:程序博客网 时间:2024/06/03 02:18
一句话搞定:
this.NavigationController.NavigationBar.Layer.MasksToBounds = true;
它很有效的,一般在做全屏界面的时候,如果你隐藏掉了NavigationBar的话,从没有隐藏的界面切换回来时,
界面顶部会有一块黑色的部分出现,虽然出现的时间很短,但给用户的体验很是不好,配合MasksToBounds属性,
我们给NavigationBar.SetBackgroundImage(。。。)设置一个图片,然后隐藏底部阴影,效果会很好,切诸多问
题都能解决.
/// <summary>/// Is called when the view is about to appear on the screen. We use this method to hide the /// navigation bar./// </summary>public override void ViewWillAppear (bool animated){base.ViewWillAppear (animated);this.NavigationController.SetNavigationBarHidden (true, animated);}/// <summary>/// Is called when the another view will appear and this one will be hidden. We use this method/// to show the navigation bar again./// </summary>public override void ViewWillDisappear (bool animated){base.ViewWillDisappear (animated);this.NavigationController.SetNavigationBarHidden (false, animated);}
- mono touch中去掉NavigationBar的底部阴影
- 去掉 NavigationBar 底部的那条黑线
- iOS之去掉NavigationBar 底部的黑线
- iOS去掉NavigationBar 底部的黑线
- 去掉 NavigationBar 底部的那条黑线
- 去掉NavigationBar底部黑线
- NavigationBar 隐藏底部边线,阴影
- iOS去掉navigationBar底部黑线
- iOS:去掉NavigationBar底部的黑线(亲测可用)
- IOS去掉NavigationBar底部的那条黑线
- IOS去掉NavigationBar底部的那条黑线
- IOS 去掉 NavigationBar 底部的那条黑线
- IOS去掉NavigationBar底部的那条黑线
- IOS去掉NavigationBar底部的那条黑线
- mono touch 中图片的StretchableImage属性
- mono touch中UIProgressView的使用
- mono touch中UISwitch控件的使用
- mono touch中UISegmentedControl控件的使用
- java awt 事件监听 简单示例2
- function strtonum never defined
- 推荐系统的循序进阶读物(从入门到精通)
- 友盟社会化分享最新3.1(微信,朋友圈)--------源于网络,分享网络
- codeforces 365A——Good Number
- mono touch中去掉NavigationBar的底部阴影
- 系统调用的实现
- C++ 友元
- Divide Two Integers
- sqlite3 使用
- 学生表 课程表 成绩表 教师表 50个常用sql语句
- tomcat自动部署的设置
- 本地连接不能用,修复tcp/ip协议
- Qt事件机制详解