Access hardware information on iOS devices

Is it possible to write an application that displays information about equipment, such as the number of cores in the processor, available RAM, GPS, motion sensors?

Using CoreLocation and CoreMotion , it’s not possible to know for sure whether a GPS or accelerometer is present on the device due to the location services switch.

Can I go deeper into the hardware?

+1
source share
2 answers

Pretty much no. You can get some general, implied information, for example, by allocating RAM until you get a warning, and then assume that your free RAM. You can also check for the availability of certain services, for example by querying CLLocationManager if locationServicesEnabled. But you cannot get detailed information about this in order to know for sure whether there is, for example, GPS, but it is simply disabled.

So the answer is no.

+1
source

Check out the iPhone Coffbook for iPhone Developers (Erica Sadun, http://ericasadun.com ) for the UIDevice Class - UIDevice-Hardware (direct link here: https://github.com/erica/uidevice-extension/blob/master/UIDevice- Hardware.h ), but I also recommend getting a book. Pretty good stuff, and the UIDevice extensions are pretty good.
Please note that some of these things are private APIs! - you cannot send it!

+1
source

All Articles