ios - How can i get this switch's status?(Setting->Privacy->Your App->Sports and fitness) -


enter image description here

now, can error code function...

typedef void (^cmpedometerhandler)(cmpedometerdata * __nullable pedometerdata, nserror * __nullable error) - (void)querypedometerdatafromdate:(nsdate *)start                             todate:(nsdate *)end                        withhandler:(cmpedometerhandler)handler;  error.code == 105 equal "not allow" 

i don't know how switch's status directly. if there api can directly switch's status? or did have other function solve problem. thanks!


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -