Trying to find a way to detect M7.
Doesn't it make sense to request a CMStepCounter or CMMotionActivity class if M7 is missing? I assume that on models without M7 that have iOS 7.0, these classes receive data, but not as efficiently and use a lot more battery.
In a rough way would be:
struct utsname systemInfo; uname(&systemInfo); model = [[NSString alloc] initWithCString:systemInfo.machine encoding:NSUTF8StringEncoding]; version = [[NSString alloc] initWithString:[[UIDevice currentDevice] systemVersion]]; if ([model compare:@"iPhone6,1"]) { }
ios sdk core-motion apple-m7
Gamma point
source share