I have a tabbar project, but when the app loads, it should display a modal view with a login screen. I do selfcareViewController *selfcareView = [[selfcareViewController alloc]init]; [self presentModalViewController:selfcareView animated:YES]; in the first view controller of the tabbar. But it doesn't load anything.

有帮助吗?

解决方案

Try presenting the modal view controller from the UITabbarController itself.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top