ios - How to ask for CoreMotion permission again? -


after adding "privacy - motion usage description" info.plist

i ran , worked , asked permission on first run , denied permission , i'm stuck because can't find out how popup permission alert again.

- (void) viewdidload {     [super viewdidload];     [self.pedometer startpedometerupdatesfromdate:[nsdate date] withhandler:^(cmpedometerdata * _nullable pedometerdata, nserror * _nullable error) {         // block called each live update         [self updatesteps:pedometerdata];     }]; }  -(void) updatesteps:(cmpedometerdata *)pedometerdata{     if ([cmpedometer isstepcountingavailable]) {         nslog(@"steps count:%@",[formatter stringfromnumber:pedometerdata.numberofsteps]);     } else {         nslog(@"step counter not available.");     } } 

please help!

thanks in advance.

in ios can never show kind of permission dialog again. can show steps user how change permission setting :)


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -