Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Buttons inside of a Pop Over Controller on the iPad

I am attempting to create a popover similar to this in an iPad app.

alt text

Does anybody know if there is a built in way to do this? Is it a UISegmentedControl inside of a UIPopoverController?

like image 835
DHamrick Avatar asked Dec 29 '22 20:12

DHamrick


2 Answers

No it's not a segmented control inside a pop over controller. It's a menu controller.

You can get the shared menu controller, then edits its menuItems property, and show it.

like image 183
kennytm Avatar answered Jan 15 '23 02:01

kennytm


a UIPoveroverController can contain any view controller in it....so if u have a ViewController that has a view that is a UISegmentedControl or whatever you need i dont see why it wouldnt work...Though as the poster above me pointed out, you can just use a UIMenuController..

Daniel

like image 29
Daniel Avatar answered Jan 15 '23 02:01

Daniel