iOS_覆盖uitabbarcontroller全屏的view
2015-09-27 14:06
375 查看
在开发中我们常常需要高于uitabbarcontroller层次去显示一些效果,比如mbprogresshub相类似的效果,调用如下的代码就OK了。
UIView *vi = [[UIView
alloc] initWithFrame:[[UIScreen
mainScreen] bounds]];
vi.backgroundColor = [UIColor
blackColor];
[vi
setAlpha:0.5];
[[[[[[UIApplication
sharedApplication]
delegate] window]
rootViewController] view]
addSubview:vi];
UIView *vi = [[UIView
alloc] initWithFrame:[[UIScreen
mainScreen] bounds]];
vi.backgroundColor = [UIColor
blackColor];
[vi
setAlpha:0.5];
[[[[[[UIApplication
sharedApplication]
delegate] window]
rootViewController] view]
addSubview:vi];
相关文章推荐
- 'sessionFactory' or 'hibernateTemplate' is required
- [LeetCode] Unique Binary Search Trees(!!DP)
- 【UIKit-110-2】#import <UIKit/UITableView.h>获取数据与滚动
- IOS UI画线
- 检测到有潜在危险的 Request.Form 值
- iOS开发UI篇—xib的简单使用
- 【UIKit-110-1】#import <UIKit/UITableView.h> 基础创建
- Auto Layout界面自动布局 (Interface Builder布局)
- Longest Consecutive Sequence
- Qt Quick 布局演示
- SpriteBuilder中锚点的一般用法
- SpriteBuilder中锚点的一般用法
- SpriteBuilder中锚点的一般用法
- Git Hub 上面的pull request解释
- iOS --- UICollectionView中使用reloadItemsAtIndexPaths进行局部cell更新
- UCGUI编程三:背景窗口重绘
- 【UIKit-93-2】#import <UIKit/UIScrollView.h>
- UGUI 新手指引
- Java中GUI相关控件常见问题详解
- iOS7极限编程 第一部分 第二章 世界是扁平化的:新的UI范式 (译)