NSData生成 // NSDictionaryからNSDataを生成する例 NSDictionary *dic =[NSDictionary dictionaryWithObject:@"hoge" forKey:@"KEY"]; NSData *d = [NSKeyedArchiver archivedDataWithRootObject:dic]; //ファイル(hoge.png)からNSDataを生成する例 NSBundle *bundle = [NSBundle mainBundle]; NSString *path = [bundle pathForResource:@"hoge" ofType:@"png"]; NSData *d = [[NSData alloc] initWithContentsOfFile:path]; NSData型に変換するには、上記例のようにNSK