I am using the splitViewController template provided by Apple. On a specific action, I want to show the rootViewController. Unfortunately, I cannot find a method that will show the popover (programmatically) just as it does when you tap the bar button item.
Any Ideas? Thanks!
you can show the popover from a
barButtonItemor with your own rect with these two methods:self.popoverControlleris my case an ivar which stores the popover. I’m setting this variable each time in:and set it back to
nilin it’s counterpart method:heres my code: