My app includes an options menu for sharing, which is presented when a UITableViewCell
is long pressed. If the UITableViewCell
is too high on the screen, the arrow from the options menu is below the UITableViewCell
. Is there any way to set the arrow direction manually?
The code I use to show the options menu is:
self.documentInteractionController = UIDocumentInteractionController(URL: fileShareURL)
self.documentInteractionController.delegate = self
self.documentInteractionController.UTI = "public.xml"
self.documentInteractionController.presentOptionsMenuFromRect(self.view.frame, inView: self.view, animated: true)
where documentInteractionController
is defined as a class variable with var documentInteractionController: UIDocumentInteractionController!
, and fileShareURL
is an NSURL
pointing to the file I would like to share.