问题
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