小编mav*_*cks的帖子

将Google Map SDK添加到iOS6时发送到类的错误无​​法识别的选择器

这是一个单一视图应用程序,我按照链接https://developers.google.com/maps/documentation/ios/start上的说明 将Google地图SDK添加到iOS6.错误是:

unrecognized selector sent to class 0xe2b0
2013-02-07 15:21:29.788 mapApp[2061:12e03] *** Terminating app due to uncaught exception     
'NSInvalidArgumentException', reason: '+[GMSCameraPosition    
cameraWithLatitude:longitude:zoom:]: unrecognized selector sent to class 0xe2b0'
Run Code Online (Sandbox Code Playgroud)

AppDelegate.m

- (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;

   //initializing google map api key
   [GMSServices provideAPIKey:@"google's api key goes here"];

   [self.window makeKeyAndVisible];
   return YES;
Run Code Online (Sandbox Code Playgroud)

}

ViewController.m

#import "ViewController.h" …
Run Code Online (Sandbox Code Playgroud)

sdk map ios6 google-maps-sdk-ios

13
推荐指数
2
解决办法
5521
查看次数

- [__ NSCFDictionary objectAtIndex:]:在将JSON页面解析为UITableView时发送到实例0x8943940的无法识别的选择器

我已经通过很多链接,幸运的是我有很多类似的链接,但没有任何工作.

我的数组在输出中出现如下,使用NSLog()..

products =     (
            {
        cid = 1;
        name = "hello world";
    },
            {
        cid = 2;
        name = "It is an array";
    },
            {
        cid = 3;
        name = "error error";
    },
            {
        cid = 4;
        name = "OMG! still same";
    },
            {
        cid = 5;
        name = "any help";

  ...
  ...
   },
            {
        cid = 130;
        name = "How is the work going on.";
    },
            {
        cid = 131;
        name = "Had a nice lunch";
    }
); …
Run Code Online (Sandbox Code Playgroud)

iphone uitableview ios nsjsonserialization

1
推荐指数
1
解决办法
7638
查看次数