这是什么原因造成的?我在 Xcode 4.3 上运行 iOS 5.1 并使用 Storyboards。
'NSInvalidArgumentException', reason: '-[WFTopTableViewController topViewController]: unrecognized selector sent to instance 0x6d56f80'
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Initial view controller is a Table View Controller, so we look up the window's rootViewController.
UINavigationController *navigationController = (UINavigationController *)self.window.rootViewController;
// Set up the controller.
WFTopTableViewController *controller = (WFTopTableViewController *)navigationController.topViewController;
// Pass the controller the managed object context for the first time.
controller.managedObjectContext = self.managedObjectContext;
return YES;
}
谢谢!阿曼达