UIPopover without any arrows

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

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

17条回答
  •  既然无缘
    2020-12-08 02:28

    In my case for swift developers

    popoverController.sourceView = self.view
    popoverController.sourceRect = self.view.bounds
    popoverController.backgroundColor = UIColor.brownColor()
    
    popoverController.permittedArrowDirections = UIPopoverArrowDirection.init(rawValue: 0)
    popoverController.sourceRect = CGRectMake(width/4, hieght/4, width/2, hieght/2);
    

提交回复
热议问题