0

My application is an iPad master-detail view based. Now I want to implement a feature, but I have no idea how to do, please help.

I want to add a overlay view to show some text. When screen is landscape, I want the text view overlay on the master view in order to not cover any portion of detail view; when screen is portrait, since the master view is hidden, I want the text view to be overlay on bottom side of detail view.

Any idea is appreciated.

1 Answer 1

0

If you're using the UISplitViewController, it has a property called viewControllers. This property is an array containing two UIViewControllers: the first one is your master view and the second one is the detail view. You can set up your overlays on top of these views, and swap the overlay from one view to the other in the rotation methods.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.