[ios] Made userTrackingMode KVO-compliant

Fixes #4363.
This commit is contained in:
Minh Nguyễn
2016-04-17 23:24:20 -07:00
committed by Minh Nguyễn
parent 96e0857227
commit 1818576fe6
2 changed files with 3 additions and 0 deletions

View File

@@ -3171,7 +3171,9 @@ mbgl::Duration MGLDurationInSeconds(NSTimeInterval duration)
}
MGLUserTrackingMode oldMode = _userTrackingMode;
[self willChangeValueForKey:@"userTrackingMode"];
_userTrackingMode = mode;
[self didChangeValueForKey:@"userTrackingMode"];
switch (_userTrackingMode)
{