How can I identify the particular iOS device is an iPhone 3G or an iPhone 4?

781 Views Asked by At

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

Thanks in advance.

1

There are 1 best solutions below

0
On BEST ANSWER

Check out uidevice-extension by Erica Sadon.

You can use the following:

[[UIDevice currentDevice] platformType];
[[UIDevice currentDevice] platformString];