Reputation: 3572
Our universal app supports opening pdf files from other apps, but we only want to support it on iPad.
Is there a way to prevent an app from being listed in the Open In... menu when you long press on a pdf file if the device is iPhone?
Upvotes: 3
Views: 111
Reputation: 397
You can check on which device your app is running. For example
if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
[self openPDF];
}
Upvotes: -3
Reputation: 73936
You can target specific device types by appending ~iphone
, ~ipad
or ~ipod
to the keys in Info.plist
. See Creating Device-Specific Keys in the documentation.
Upvotes: 4