我从另一个 uiviewcontroller(WelcomeScreen) 调用 uiviewControllor(ExchangeToday)。但错误是:
2013-09-10 11:57:24.005 exchangerate[3234:c07] 警告:尝试显示不在窗口层次结构中的视图!
我的代码是:
@interface ExchangeToday : UIViewController <UIScrollViewDelegate, UITableViewDelegate, UITableViewDataSource>
UIViewController *second = [[ExchangeToday alloc] initWithNibName:@"ExchangeToday_iPhone" bundle:nil];
second.modalPresentationStyle = UIModalPresentationFormSheet;
second.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self presentModalViewController:second animated:YES];
如何解决?