ios - How would I manually set the arrow direction of an options menu presented by a UIDocumentInteractionController? -
my app includes options menu sharing, presented when uitableviewcell
long pressed. if uitableviewcell
high on screen, arrow options menu below uitableviewcell
. there way set arrow direction manually?
the code use show 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
defined class variable var documentinteractioncontroller: uidocumentinteractioncontroller!
, , fileshareurl
nsurl
pointing file share.
i figured out problem wasn't location of uitableviewcell
, presenting options menu from. code presenting options menu top of screen, not cell was.
Comments
Post a Comment