Matt
Matt

Reputation: 430

Distinguish iPhone 3G from iPhone 3GS

Is it possible to distinguish an iPhone 3G from an iPhone 3G S using any of the properties of [UIDevice currentDevice]?

Upvotes: 4

Views: 2611

Answers (3)

Vilém Kurz
Vilém Kurz

Reputation: 3410

maybe simpler solution - try

[[[UIDevice] currentDevice] isMultitaskingSupported];

iPhone 3G has no multitasking, while 3GS and newer have.

Upvotes: 0

frankodwyer
frankodwyer

Reputation: 14048

I don't believe so - nor even 1G phones from 3G. You have to use sysctls to get more detailed model info.

E.g. see here

Upvotes: 1

Stobor
Stobor

Reputation: 45122

The best way to check is to use sysctlbyname("hw.machine", ...) as per How to tell if your code is running on an iPhone or an iPhone3G?

The returned result for 3GS should be "iPhone2,1"

Upvotes: 5

Related Questions