1

How can I identify if the iOS device my app runs on is an iPhone 3G of an iPhone 4?

Thanks in advance.

NIKHIL
  • 2,719
  • 1
  • 26
  • 50
  • 1
    [This has been asked before](http://stackoverflow.com/questions/1108859/detect-the-specific-iphone-ipod-touch-model) and a good answer seems to be provided. – Ian L Feb 19 '11 at 10:49
  • 2
    BTW as a rule of thumb in most cases you don't need to know this... Unless your're making a game or something that's very special. – Enrico Susatyo Feb 19 '11 at 11:22

1 Answers1

1

Check out uidevice-extension by Erica Sadon.

You can use the following:

[[UIDevice currentDevice] platformType];
[[UIDevice currentDevice] platformString];
dfrdmn
  • 580
  • 4
  • 13