iphone - Getting device info in iOS? -
I want to search and store information about a user device.
I am looking for date, iPhone / iPod / iPad, locale and location.
It should be easy to get in the form of device type
What code is used to detect the current locale / language of the device interface?
check out you + currentLocale
or + autoupdatingCurrentLocale you can get an example of existing locale; The class defines several constants that you can use to obtain language and country information from the language used by its
-objectForKey:
method, e.g. NSLocaleCountryCode
and NSLocaleLanguageCode
.
Comments
Post a Comment