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

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -