Cmpedometer Querypedometerdatafromdate Returns Error 103

CMPedometer queryPedometerDataFromDate returns error 103

You should hold your CMPedometer variables as a property of you class, not as Local variables. And then it will work.

CMErrorDomain when calling CMPedometer methods

Following Larme's advice, I created a property in my ViewController and synthesized it, like so:

@interface MainViewController(){
@property (strong, nonatomic) StepService *stepService;
@end

@implementation MainViewController
@synthesize stepService

I was then able to create and call the method containing queryPedometerDataFromDate like so:

stepService = [[StepService alloc] init];
[stepService storeData];

Unknown Type Name 'CMStepCounter'

To import the HealthKit and CoreMotion frameworks in an Objective-C file, add the following to the top of the file:

#import <HealthKit/HealthKit.h>
#import <CoreMotion/CoreMotion.h>

Finding weather data to use for training a neural network

You probably want to use the NOAA datasets:

http://www.ncdc.noaa.gov/

http://www.nws.noaa.gov/gis/

http://sos.noaa.gov/datasets/



Related Topics



Leave a reply



Submit