简体   繁体   中英

Application crashes at Startup when updated app to iOS 7

I recently changed my Xcode project to be iOS 7. After making this change as soon as the app starts I get this message in the console.

[UIView setImage:]: unrecognized selector sent to instance 0xbfe5780

I'm not sure what is causing this. But using the debugger it seems like my app delegate is crashing at the first line of code.

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

      self.window.rootViewController = self.tabBarController; //this line is where it crashes

      [self.window makeKeyAndVisible];
 }

Any help would be appreciated

这仅仅是因为该方法在ios7中已弃用,某些在ios6中工作的方法在ios7中已弃用,因此请找到新方法并将其替换...希望您能得到它

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM