Posted By

espinallab on 04/14/11


Tagged

Objective-c UIUserInterfaceIdiomPhone


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

Tintenklecks
cnathan


Check if the user is using an iPhone, iPod Touch device


 / Published in: Objective C
 

URL: http://www.espinallab.com

  1. if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
  2. //The device is an iphone
  3. }

Report this snippet  

You need to login to post a comment.