//创建一个窗口,设置大小为屏幕大小 self.window =[[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds]; //设置窗口的背景颜色// UIImage *myImage = [UIImage ima...
分类:
移动开发 时间:
2015-09-17 10:09:29
阅读次数:
312
//初始化窗口,这是UI设计的第一步 self.window=[[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; ?? ? ? ? self.window.backgroundColor=[UIColor whiteColor]; ? ? [self.window makeK...
分类:
其他好文 时间:
2015-09-16 14:23:34
阅读次数:
263
-(void)fullScreenshots{UIWindow *screenWindow = [[UIApplication sharedApplication] keyWindow];UIGraphicsBeginImageContext(screenWindow.frame.size);//全...
分类:
移动开发 时间:
2015-09-14 19:16:52
阅读次数:
193
1 #import 2 3 @interface AppDelegate : UIResponder 4 5 @property (strong, nonatomic) UIWindow *window;6 7 8 @end 1 #import "AppDelegate.h" 2 #import "...
分类:
其他好文 时间:
2015-09-14 15:24:45
阅读次数:
224
编写cell中得button点击事件- (IBAction)showButtonClick:(id)sender{ UIButton *button = (UIButton *)sender; UIWindow* window = [UIApplication sharedApplication.....
分类:
其他好文 时间:
2015-09-10 17:25:08
阅读次数:
114
// 获取根控制器 UIWindow *rootWindow = [UIApplication sharedApplication].keyWindow; // 获取根控制器 UIWindow *rootWindow = [UIApplication sharedApplication].ke...
UIWindow简单介绍一、简单介绍UIWindow是一种特殊的UIView,通常在一个app中只会有一个UIWindowiOS程序启动完毕后,创建的第一个视图控件就是UIWindow,接着创建控制器的view,最后将控制器的view添加到UIWindow上,于是控制器的view就显示在屏幕上了一个...
UI概述UI(User Interface):?用户界?面,?用户能看到的各种各样的?页?面元素。iOS App = 各种各样的UI控件 + 业务逻辑和算法。什么是window?window是窗?口,每个app都需要借助window将内容展现给?用户看。在iOS中,使?用UIWindow类来表?示窗...
分类:
其他好文 时间:
2015-09-08 12:07:02
阅读次数:
205
一.UIWindow二.UIView三.UILable
一、简单介绍UIWindow是一种特殊的UIView,通常在一个app中只会有一个UIWindowiOS程序启动完毕后,创建的第一个视图控件就是UIWindow,接着创建控制器的view,最后将控制器的view添加到UIWindow上,于是控制器的view就显示在屏幕上了一个iOS程序之所以能显示到...
分类:
移动开发 时间:
2015-09-07 10:49:29
阅读次数:
157