UIPopover without any arrows

前端 未结 17 1180
说谎
说谎 2020-12-08 02:15

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

17条回答
  •  离开以前
    2020-12-08 02:26

    In Swift, you can simply do:

    popoverPresentationController.permittedArrowDirections = []
    

    Since in another configuration you could have used:

    popoverPresentationController.permittedArrowDirections = [.up, .down]
    

提交回复
热议问题