decodeIntForKey:
アーカイブからキーで整数値をデコードします
-(int)decodeIntForKey:(NSString *)key
解説
アーカイブからキーで整数値をデコードします。
返り値
( int )
整数値
引数
( NSString * )key Decodes
フレームワーク
Foundation
クラス
NSKeyedUnarchiver
Instance Methods
使用可能
10.0
参照
- encodeInt:forKey: (NSKeyedArchiver)
例文
NSLog([NSString stringWithFormat:@"%d", [unarchiver decodeIntForKey:@"intVal1"]]);