iphone - Adding an "Open In..." menu -
my ios app handles pdf files , want able open file in application want add "open in..." menu (seen here). how this?
the menu called uidocumentinteractioncontroller. docs here: http://developer.apple.com/library/ios/documentation/uikit/reference/uidocumentinteractioncontroller_class/reference/reference.html
you'll want property (otherwise, released before present it)
@property (nonatomic, strong) uidocumentinteractioncontroller *documentinteractioncontroller;
to display it:
self.documentinteractioncontroller = [uidocumentinteractioncontroller interactioncontrollerwithurl:[nsurl fileurlwithpath:mypdfpath]]; [self.documentinteractioncontroller presentopeninmenufrombarbuttonitem:self.actionbutton animated:yes];
Comments
Post a Comment