Re: What iOS device?
Re: What iOS device?
- Subject: Re: What iOS device?
- From: Fritz Anderson <email@hidden>
- Date: Fri, 31 Jan 2014 12:31:41 -0600
On 31 Jan 2014, at 12:45 AM, KappA <email@hidden> wrote:
> I came across this the other day. Have you already looked at this?
>
> http://stackoverflow.com/questions/448162/determine-device-iphone-ipod-touch-with-iphone-sdk
Very strange that nobody (until I did) noticed that if you want to convert from one unique constant NSString to another, you use an NSDictionary, not a cascade of
if ([a isEqualToString: @"b"]) return @"c";
And if you load a plist instead of hardcoding every damn pair, your code gets a lot simpler.
Sigh. This is always the point where I miss something crucial…
— F
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden