App crash on iPad simulator

家住魔仙堡 提交于 2019-12-20 06:48:53

问题


App works fine on iPhone device, iPhone simulator but when tested on iPad simulator it crashed and message got is

[UIWindowLayer convertPoint:fromView:]: unrecognized selector sent to instance.

Program received signal EXC_BAD_ACCESS on thread1 UIApplicationMain

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

{
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]autorelease];
self.containerViewController = [[[ContainerViewController alloc]init]autorelease];
self.window.rootViewController = self.containerViewController;
[window makeKeyAndVisible];
return YES;
  }

Is there something wrong in UIApplication in app delegate or i have change some setting in info.

Any idea why it is crashing only on iPad simulator when running fine on iPhone device, iPhone simulator.

Any clue how to fix this issue.

Thanks for help.

来源:https://stackoverflow.com/questions/11492647/app-crash-on-ipad-simulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!