FakeLocationManager.m
1007 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// FakeLocationManager.m
// YH_Analytics
//
// Created by Zhou Rongjun on 15/4/20.
// Copyright (c) 2015年 YOHO. All rights reserved.
//
#import "FakeLocationManager.h"
@implementation FakeLocationManager
- (void)startUpdatingLocation
{
}
- (void)changeAuthorizationStatus:(CLAuthorizationStatus)status
{
if (self.delegate && [self.delegate respondsToSelector:@selector(locationManager:didChangeAuthorizationStatus:)]) {
[self.delegate locationManager:self didChangeAuthorizationStatus:status];
}
}
- (void)updateLocations:(NSArray *)locations
{
if (self.delegate && [self.delegate respondsToSelector:@selector(locationManager:didUpdateLocations:)]) {
[self.delegate locationManager:self didUpdateLocations:locations];
}
}
- (void)failedLocation:(NSError *)error
{
if (self.delegate && [self.delegate respondsToSelector:@selector(locationManager:didFailWithError:)]) {
[self.delegate locationManager:self didFailWithError:error];
}
}
@end