UIPopover without any arrows

Viewed 36802

Is it possible to present a popover without any sort of arrows pointing somewhere?

17 Answers

Swift4:

popover.permittedArrowDirections = []              

To make a pop over direction none and make it to appear in center of the view controller :

let PopSrnVar = popoverPresentationController
let ConRctVar = view.frame
PopSrnVar!.sourceRect = CGRectMake(ConRctVar.width/4, ConRctVar.height/4, ConRctVar.width/2, ConRctVar.height/2)
// To make arrows as none
PopSrnVar!.permittedArrowDirections = UIPopoverArrowDirection()
Related