How to get the model of iPhone from code. (e.g. MC143C)
Posted
by zakirulq
on Stack Overflow
See other posts from Stack Overflow
or by zakirulq
Published on 2010-06-05T06:32:19Z
Indexed on
2010/06/05
6:42 UTC
Read the original article
Hit count: 327
iphone
|iphone-sdk-3.0
Hi,
I need to get the iPhone model number from code. I can see the model number from my iPhone which is "MC143C", but when I am retrieving this by using code it is returning "iPhone". This is the code I am using to get the model number.
NSLog(@"model: %@", [[UIDevice currentDevice] model]);
Can anyone please help me to have the information i want to get from my device.
Thanks, !ZAQ
© Stack Overflow or respective owner