top of page
  • Writer's pictureJennifer Eve Vega

UISplitViewController Portrait

Updated: Apr 7, 2021

/*Note: This works in OS versions greater than or equal to iOS 6.0 OS versions less than iOS 6.0 has a different look in its UIPopoverController and doesn’t support Landscape Orientation.*/

Please do continue from where we left off in our UISplitViewController Landscape Tutorial

1. Add in PopMenuDetailViewController interface header.


2. Add UIPopoverController property in PopMenuDetailViewController interface Section.

@property (strong, nonatomic) UIPopoverController *masterPopoverController;

//Synthesize this property:
@synthesize masterPopoverController;

By the way, UIPopoverController is only available in iPad. If you want to make something like this in your iPhone application, you may use third party libraries like WEPopoverController. Download it from github.


3. Copy these SplitView Delegate methods in our PopMenuDetailViewController.m file.


4. In AppDelegate.m file, add this one-line code in didFinishLaunchingWithOptions method after initializing splitViewController.

splitViewController.delegate = detailVC; 

5. Hit Run!


Download Sample Project here.


#splitviewportrait #UISplitViewController #splitviewcontrollerportrait #splitview #UISplitViewControllerTutorial #UISplitViewControllerPortrait #iOS #splitviewcontroller

11 views0 comments

Recent Posts

See All

Hi Everyone! It has been a very long while since I last posted in this blog. This time, I will be making a tutorial in using blocks when we are accessing our API or web services. Disclaimer: I am also

Post: Blog2 Post
bottom of page