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

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -