码迷,mamicode.com
首页 >  
搜索关键字:uiwindow    ( 429个结果
懒加载
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[[UIWindow alloc] initWi
分类:其他好文   时间:2016-01-30 18:22:37    阅读次数:100
获取当前显示的ViewController
//获取当前屏幕显示的viewcontroller - (UIViewController *)getCurrentVC { UIViewController *result = nil; UIWindow * window = [[UIApplication sharedApplication] ...
分类:其他好文   时间:2016-01-25 19:16:55    阅读次数:156
iOS UICollectionView之三(基本用法)
#import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window;@end#import "AppDelegate.h"#import "RootViewController.h"@...
分类:移动开发   时间:2016-01-25 13:14:58    阅读次数:229
iOS UICollectionView之-(水平滚动)
#import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window;@end#import "AppDelegate.h"#import "RootViewController.h"@...
分类:移动开发   时间:2016-01-25 11:15:00    阅读次数:167
UIWindow ,UIlable
1.创建window 1 //1.创建window,UIScreen是屏幕类,创建和屏幕等大的窗口 2 self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 3 //2.背景颜色 4...
分类:Windows程序   时间:2016-01-23 22:53:17    阅读次数:259
IOS应用程序生命周期的AppDelegate详解
IOS 中的 AppDelegate.m/h 文件是很重要的呢,因为它是对 Application 的整个生命周期进行管理的。先明白,每个iPhone应用程序都有一个UIApplication,UIApplication是iPhone应用程序的开始并且负责初始化并显 示 UIWindow,并负责加载...
分类:移动开发   时间:2016-01-21 13:34:48    阅读次数:176
iOS 开发学习之 User Interface(2)UIWindow 视窗
UIWindow 视窗 a. 所有的UI直接或间接的放在UIWindow之上。 b. UIWindow 继承自UIView. c. 视窗的创建:初始化视窗对象,指定其尺寸,以主屏幕([UIScreen mainScreen])范围指定. d. 将视窗设置为主窗口并使其可见 [window makeK...
分类:移动开发   时间:2016-01-16 11:50:46    阅读次数:198
坐标系统、像素
只要本视图和其上级视图受同一个UIWindow管理,我们就能用iOS SDK所提供的许多工具方法在这两套坐标系统之间转换。convertPoint:fromView:把某点在另一坐标系中的坐标转换成它在本坐标系里的坐标convertPoint:toViewiOS设备的坐标系统与显示该系统的像素系统未...
分类:其他好文   时间:2016-01-11 23:44:23    阅读次数:169
iOS 退出应用程序
退出应用程序,方法很简单,只是动画效果没有那么好。- (void)exitApplication { AppDelegate *app = [UIApplication sharedApplication].delegate; UIWindow *window = app.window;...
分类:移动开发   时间:2016-01-09 15:01:28    阅读次数:144
UIWindow & UIWindowLevel详解
一、UIWindow是一种特殊的UIView,通常在一个程序中只会有一个UIWindow,但可以手动创建多个UIWindow,同时加到程序里面。UIWindow在程序中主要起到三个作用: 1、作为容器,包含app所要显示的所有视图 2、传递触摸消息到程序中view和其他对象 3、与UIView...
分类:Windows程序   时间:2016-01-09 10:51:43    阅读次数:232
429条   上一页 1 ... 11 12 13 14 15 ... 43 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!