Clinton Walsh
Clinton Walsh

Reputation: 167

How to get the model from the General>About tab iPhone

I am trying to get the model of my device. I don't mean "iPhone" or "iPod Touch" by using

UIDevice *device = [UIDevice currentDevice];
NSLog(@"%@", [device model]);

I mean the model from Settings>General>About. It looks something like "MC469B". Does anyone know how to get that?

Thanks Clinton

Upvotes: 0

Views: 365

Answers (3)

NeonGames_Kevin
NeonGames_Kevin

Reputation: 11

[[UIDevice currentDevice] as mentioned by Arvin Am & Josh Caswell are the way to go, however you should read the SDK to see what the available iOS version has. Some calls will be deprecated while others will only be supported in newer versions.

ie. UUID vs. UDID

Upvotes: 0

Arvin Am
Arvin Am

Reputation: 533

There is no way. Why would you want that?

Use these to get what you need:

[[UIDevice currentDevice] model];

[[UIDevice currentDevice] systemVersion];

[[UIDevice currentDevice] systemName];

Upvotes: 1

akashivskyy
akashivskyy

Reputation: 45210

There is no way to get it via public API. But wait... why do you want to get it?

Upvotes: 0

Related Questions