Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I remove the arrow in the popover view?

I am asked to removed the arrow of the popover view.

  1. Is that violating human interface guidelines ?
  2. Is it wise to show a popover inside another popover ?
  3. If it is not violating human interface guidelines how to do that ?
like image 800
thndrkiss Avatar asked Jan 26 '11 06:01

thndrkiss


2 Answers

For Swift

popoverMenuViewController?.permittedArrowDirections = UIPopoverArrowDirection(rawValue:0) 
like image 83
Phil Avatar answered Sep 16 '22 12:09

Phil


Just to add some sugar and Swifty the code :

Extension:

extension UIPopoverArrowDirection {
    static var none: UIPopoverArrowDirection { UIPopoverArrowDirection(rawValue: 0) }
}

Usage:

popoverMenuViewController?.permittedArrowDirections = .none

you can change the variable's name to fits your needs.

like image 42
Douglas Mendes Avatar answered Sep 16 '22 12:09

Douglas Mendes