开发者

Application tried to present a Split View Controllers modally (there is no split views in my app)

开发者 https://www.devze.com 2023-03-14 17:32 出处:网络
So this app was released to the app store about a month ago. I haven\'t done anything with it for awhile but today I went to go in and start working on an update. I get this error when trying to preve

So this app was released to the app store about a month ago. I haven't done anything with it for awhile but today I went to go in and start working on an update. I get this error when trying to prevent a view controller modally. The view controller is the same, standard viewcontroller and there are no split views anywhere in the app.

Does anyone know what could make it think the view is split view? I've never even made a split view controller before.

AddEntryViewController_iPad *vc = [[AddEntryViewController_iPad alloc]init];


vc.delegate = self;
[self p开发者_JAVA百科resentModalViewController:vc animated:NO];

update: this only occurs on the simulator. When I run it on the device it works fine...dont get it.


well i fixed it just by changing it to the following:

AddEntryViewController_iPad *vc = [[AddEntryViewController_iPad alloc]initWithNibName:nil bundle:nil ];

Strange because it works fine the other way from other viewControllers.

0

精彩评论

暂无评论...
验证码 换一张
取 消