- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
{
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
// Override point for customization after application launch.
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
self.viewController = [[[ViewController alloc] initWithNibName:@"ViewController_iPhone"bundle:nil] autorelease];
} else {
self.viewController = [[[ViewController alloc] initWithNibName:@"ViewController_iPad"bundle:nil] autorelease];
}
self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
return YES;
}
ios判断设备是iphone还是ipad
精选 转载文章标签 ios判断设备是iphone还是ipad 文章分类 iOS 移动开发
上一篇:【转】iOS高级向的十道面试问题
下一篇:instancetype和id
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
JT808-2019消息ID对照表
JT808消息ID对照表
JT808 消息ID -
微信ipad协议
微信ipad最新版
微信 API sed -
设备树DTS基础
设备树基础
子节点 设备树 字符串 -
字体对照表Java
-
Keycode对照表
event.keycode值........
键码 ide f5 ico 搜索