我有这个代码
if ([sessionOutput isEqualToString:@"valid"]) {
LoggedInViewController *loggedin = [[LoggedInViewController alloc] initWithNibName:nil bundle:nil];
[self presentViewController:loggedin animated:YES completion:nil];
}
除非要更改视图,否则我会收到以下消息:
Warning: Attempt to present <LoggedInViewController: 0x717fec0> on
<ViewController: 0x8a64af0> whose view is not in the window hierarchy!
我究竟做错了什么?