ios - ActionSheet Source View BarButtonItem -
i have bar button item in navigation bar when pressed, present uialertcontroller
style .actionsheet
. in iphone appears way want. ipad know need add
// ipad, set pop on bounds var popover = optionmenu.popoverpresentationcontroller popover?.sourceview = button uiview popover?.sourcerect = (button uiview).bounds popover?.permittedarrowdirections = uipopoverarrowdirection.any
does know of way use bar button item sourceview
, sourcerect
? popover point bar button item.
just use popover?.barbuttonitem = mybarbuttonitem
Comments
Post a Comment