NSLog(@"1");
NSArray *obj= [NSArray arrayWithObjects:appDel.token, nil];
NSLog(@"2");
NSArray *key= [NSArray arrayWithObjects:@"Token", nil];
NSLog(@"3");
NSDictionary *d= [[NSDictionary alloc] initWithObjects:obj forKeys:key];
NSLog(@"4");
DoSomething();
NSLog(@"5");
上記のコードについて助けが必要です。クラッシュしているようです@"4"
(4 が出力されません)。
Xcode からのエラー:
'Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[NSDictionary initWithObjects:forKeys:]: count of objects (0) differs from count of keys (1)'
親切な魂が私を正しい方向に向けることができますか? Xcode 5にアップグレードするまで動作していました:(