NSMutableDictionary *dict = [NSMutableArray array];
これでオブジェクトが作成されNSMutableArray
ます。
Xcode Product menu-> generate output ->Assembly file
L_OBJC_CLASSLIST_REFERENCES_$_:
.quad _OBJC_CLASS_$_NSMutableArray
NSArray
オブジェクトの順序付けられたコレクションを管理します。NSDictionary
キーと値の関連付けを管理します。で初期化NSMutableDictionary
しないでくださいNSMutableArray
。
NSMutableDictionary *dict = [[NSMutableArray alloc] init]; // return type is NSMutableArray
Warning :Incompatible pointer types initializing 'NSMutableDictionary *' with an expression of type 'NSMutableArray *'
NSMutableDictionary *dict = [NSMutableArray array]; // return type is id + (id)array
NO Warnings