#1225 - Converting id to instancetype

This commit is contained in:
Brad Leege
2015-04-24 15:41:21 -05:00
parent 317be34708
commit 591c63286b
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@
@interface MapboxGL : NSObject
+ (id) sharedInstanceWithAccessToken:(NSString *)token;
+ (instancetype) sharedInstanceWithAccessToken:(NSString *)token;
+ (NSString *) getAccessToken;
@end

View File

@@ -17,7 +17,7 @@ static MapboxGL *_sharedManager;
// Can be called from any thread. Called implicitly from any
// public class convenience methods.
//
+ (id) sharedInstanceWithAccessToken:(NSString *)token {
+ (instancetype) sharedInstanceWithAccessToken:(NSString *)token {
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
if ( ! NSProcessInfo.processInfo.mgl_isInterfaceBuilderDesignablesAgent) {