pod "CTAPI_AMap"
- apply key from AMap:https://lbs.amap.com/
- add
pod "CTAPI_AMap"
in your Podfile - create an Object named
Target_CTAMapKey
in your own project
@implementation Target_CTAMapKey
- (NSString *)Action_key:(NSDictionary *)params
{
return @"your AMap key";
}
@end
- create an Object named
Target_CTAppContext
in your own project (for CTNetworking)
@implementation Target_CTAppContext
- (BOOL)Action_isReachable:(NSDictionary *)params
{
return YES;
}
- (NSInteger)Action_cacheResponseCountLimit:(NSDictionary *)params
{
return 2;
}
- (BOOL)Action_shouldPrintNetworkingLog:(NSDictionary *)params
{
return YES;
}
@end
- haa! you can use AMap API now! read demos for how to use the APIManagers