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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -