user2578250
user2578250

Reputation: 1

Problems using split view controllers in iOS

I'm new at objective-c programming and I need help clearing some doubts about the split view controllers. I understand that if you use a split view controller in your app then it must necessarily be your root view and I was wondering if there was any way to get around it.

I mean, I need to use split view controllers in my app but only in a couple of views, and for the rest just use simple views. If anyone has any idea or suggestion as to how to do this I'd be really grateful.

Upvotes: 0

Views: 281

Answers (2)

Sunny
Sunny

Reputation: 1464

You can add split view controllers as children of tabbarviewcontrollers. Also, you can add split view controllers into container view controllers you build.

Upvotes: 0

rdelmar
rdelmar

Reputation: 104082

There are several things you can do. You can present your simple views modally, which will cover up the split view controller, or you can switch out the window's root view controller when you're done with the split view. Which to do depends on how and where in your app you use the split view. If you are going back and forth to it, then I would use the first method, if you're using it once, then going to the simple views, I would use the second method.

Upvotes: 1

Related Questions