iOS bit to nsdata
2014-05-07 16:26
134 查看
NSString *bitSeries = @"00000000000000000000000111101100"; uint32_t value = strtoul([bitSeries UTF8String], NULL, 2);
NSData *data = [NSData dataWithBytes:&value length:sizeof(value)]; NSLog(@"%@", data);
相关文章推荐
- iOS Invalid bitcode signature(Linker command falied with exit code 1 (use -v to see invocation))
- IOS 编译错误:-fembed-bitcode is not supported on versions of iOS prior to 6.0
- -fembed-bitcode is not supported on versions of iOS prior to 6.0 iOS
- Byte Array to NSData——iOS将服务器返回的图片字节数组用UIImageView显示该图像
- -fembed-bitcode is not supported on versions of iOS prior to 6.0
- ISSUE:-fembed-bitcode is not supported on versions of iOS prior to 6.0
- -fembed-bitcode is not supported on versions of iOS prior to 6.0 问题修复
- -fembed-bitcode is not supported on versions of iOS prior to 6.0 问题修复
- -fembed-bitcode is not supported on versions of iOS prior to 6.0
- -fembed-bitcode is not supported on versions of iOS prior to 6.0 问题修复
- -fembed-bitcode is not supported on versions of iOS prior to 6.0
- -fembed-bitcode is not supported on versions of iOS prior to 6.0问题
- iOS开发:bitcode问题:linker command failed with exit code 1 (use -v to see invocation)
- "-fembed-bitcode is not supported on versions of iOS prior to 6.0" 错误
- iOS: NSData的方法writeToFile:atomically:
- iOS:NSData的方法writeToFile:options:error:
- iOS int to bit
- iOS: NSData的方法isEqualToData:
- -fembed-bitcode is not supported on versions of iOS prior to 6.0
- iOS: Convert NSData to NSString