Altealice
Altealice

Reputation: 3572

Opening URLs from other apps for iPad only, and disabled on iPhone

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

Answers (2)

toxicsun
toxicsun

Reputation: 397

You can check on which device your app is running. For example if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { [self openPDF]; }

Upvotes: -3

Jim
Jim

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

Related Questions