0
接收到此錯誤。其視圖不在iOS 6.1的窗口層次結構中
2013-02-28 16:19:49.628 VLC [1416:907]警告:嘗試呈現誰的視圖不在窗口層次結構中!
這是我的代碼
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// This will mark crashy files
[[MLMediaLibrary sharedMediaLibrary] applicationWillStart];
[_window addSubview:self.navigationController.view];
[_window setRootViewController:self.navigationController];
[_window makeKeyAndVisible];
NSURL * urlToOpen = [launchOptions objectForKey:UIApplicationLaunchOptionsURLKey];
urlToOpen = [NSURL URLWithString:@"rtsp://192.168.4.123"];
if (urlToOpen != nil) {
// We were started to open a given URL
MVLCMovieViewController * movieViewController = [[MVLCMovieViewController alloc] init];
movieViewController.url = urlToOpen;
[self.navigationController presentViewController:movieViewController animated:YES completion:NULL];
[movieViewController release];
}
return YES;
}