ios - How can i get this switch's status?(Setting->Privacy->Your App->Sports and fitness) -
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
Post a Comment