UIPopOver From UIButton for iPhone
问题 Can we create iPad like UIPopOver in iPhone devices using Swift where source is UIButton . I created UIPopOver from UIBarButtonItem and its working fine but It's not working in case of UIButton . Can anyone suggest a better solution asap. I need to work it in iPhone device. 回答1: Yes you can, but you need to implement delegate of popoverPresentationController let viewController = self.storyboard?.instantiateViewControllerWithIdentifier("AnnotationInfoViewController") as! PopUpViewController /