0

Possible Duplicate:
API to determine whether running on iPhone or iPad

Hi,

I'd like to test the device in my application, to know wether I'm on a iPad device or on an Iphone.

is there a easy way to do that ?

thank's au lot

David

Community
  • 1
  • 1
David
  • 1

2 Answers2

2

All you need is this:

UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad
tadejsv
  • 2,085
  • 1
  • 18
  • 20
0

http://github.com/erica/uidevice-extension/blob/master/UIDevice-Hardware.m

Note too that any number of search engines will work for this also (SO and google come to mind). And they will be PHENOMENALLY faster that posting and waiting. Just saying.

KevinDTimm
  • 14,226
  • 3
  • 42
  • 60