- Home /
Question by
BobbleHead · Nov 03, 2013 at 05:05 PM ·
iphoneipod
Detecting iPhone/Pod/Pad generation
I am currently detecting I Generation by
if( iPhoneSettings.generation == iPhoneGeneration.iPhone )
{
//Its a first generation iPhone
}
However, this now as you can expect is becomming quite a long series of if statements, and I'm thinking there must be a better way to do this.
Is it possibile to say if IDevice is less than or equal to IPhone 4S generation then do something, else do something else? I guess that wouldn't account for iPad and Pod's though...
Any catch all solutions? Or is the long list of if's the best way to go about it?
Comment