摘要: #import "RootViewController.h"#import "ModelViewController.h"@interfaceRootViewController ()@end@implementation RootViewController- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil{ self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; i 阅读全文
posted @ 2013-05-27 23:03 wei8 阅读(163) 评论(0) 推荐(0)
摘要: NSLog(@"%@",[UIDevice currentDevice].systemName);NSLog(@"%@",[UIDevice currentDevice].systemVersion);第一行打印 iphone os //当前设备系统的名称第二行打印 6.1 //当前系统的版本[UIApplication sharedApplication].keyWindow;self.view.window;同为获取当前window的方法,不过有一个区别,第二行的view如果是Nil的话获取不到3. 屏幕方向相关IOS 6.0 之前//ios 6.0 阅读全文
posted @ 2013-05-27 22:30 wei8 阅读(134) 评论(0) 推荐(0)