0

在 NSDictionary 中复制密钥后,我遇到了崩溃。我正在使用 ARC。是什么原因?

-(NSArray*) findClosestPointsAroundPoint: (NSDictionary*) p inTable: (NSString*) table {

NSMutableArray* fields = [[p allKeys] mutableCopy];}

(gdb) po table
0xef7b880 does not appear to point to a valid object.
4

1 回答 1

0

大概table尚未设置,或已设置为 nil 值。试着NSLog(@"TABLE ->%@"<- TABLE, table);看看它的价值table是什么。

于 2011-12-04T12:30:05.233 回答