I tried stubbing AuthorizationStatus, but it alway returns kCLAuthorizationStatusResticted no matter what I do.
OCMStub([CLLocationManager authorizationStatus]).andReturn(kCLAuthorizationStatusAuthorizedAlways);
What did I do wrong?
Aucun commentaire:
Enregistrer un commentaire