setDictionary:
INDEX>Foundation>NSMutableDictionary>
変更可能な辞書を別の辞書で置き換えます
-(void)setDictionary:(NSDictionary *)otherDictionary
解説
変更可能な辞書を別の辞書で置き換えます。
返り値
( void )
なし
引数
( NSDictionary * )otherDictionary
置き換える辞書
フレームワーク
Foundation
クラス
NSMutableDictionary
Instance Methods
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSDictionary *dic = [NSDictionary dictionaryWithObjectsAndKeys: @"a",@"あ", @"i",@"い", @"u",@"う",nil]; NSMutableDictionary *aMutableDictionary = [ NSMutableDictionary dictionaryWithCapacity:1 ]; [aMutableDictionary setDictionary:dic]; NSLog([aMutableDictionary description]); } @end