0

我已经导航了,但我会尝试另一种方法,现在它不起作用。我收到了这个错误Warning: Attempt to present <LobbyPageview: 0x719f690> on <ViewController: 0x71aadb0> whose view is not in the window hierarchy!

我的代码

-(void)setDynamicHeightstrendtable:(NSMutableArray *)winarr{
trendarr = winarr;
NSLog(@"values for trend arr %@",trendarr);
if (winarr.count > 1 ) {
    LobbyPageview *firstViewobj = [[LobbyPageview alloc]initWithNibName:@"LobbyPageview" bundle:nil];
   firstViewobj.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
    [self presentViewController:firstViewobj animated:YES completion:nil ];

以前可以用,现在不能用了,请帮我解决这个问题,谢谢

4

0 回答 0