Whose view is not in window hierarchy issue

后端 未结 1 1682
粉色の甜心
粉色の甜心 2020-12-10 07:47

I\'ve set up a navController, which appears after tapping a button. However, if I tap the button I get the error of: \"Warning: Attempt to present

相关标签:
1条回答
  • 2020-12-10 08:09

    i checked your project.. wasn't able to sort out the proper issue..

    but i tried a hack and it worked..

    replace this line with

    [self presentModalViewController:navController animated:YES];
    

    this

    [[[[[UIApplication sharedApplication] delegate] window] rootViewController] presentModalViewController:navController animated:YES];
    
    0 讨论(0)
提交回复
热议问题