当我尝试添加谷歌地图根据这个链接Google MAP如何添加谷歌地图到iOS6的SDK
到iOS6的和我得到的API密钥,并把它放在我的应用程序,但它坠毁的原因“谷歌地图SDK适用于iOS必须通过[GMSServices ProvideAPIKey:...]被初始化”
任何机构可以帮助我,给我的视频怎么做任何事情...
#import "AppDelegate.h"
#import <GoogleMaps/GoogleMaps.h>
#import "ViewController.h"
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
self.viewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
return YES;
[GMSServices provideAPIKey:@"AIzaSyBoOGGGQnvDydbKcxGeB1of6wu2ibE6Rjk"];
}
我更新了代码的问题... – 2013-03-25 03:39:10
嗨@TaherZaki,我已经添加了一个更新应该解决这个问题。 – 2013-03-25 04:58:32
可以请你检查一下,并给我一些信息http://stackoverflow.com/questions/20322927/error-using-google-maps-in-ios/20324862?noredirect=1#20324862 – chandru 2013-12-09 04:50:56