简体   繁体   English

不推荐使用Base64Encoding:首先在iOS 7.0中弃用

[英]Base64Encoding is deprecated : first deprecated in iOS 7.0

I've downloaded the Base64 library from GitHub.I used it in my project to decode the Images from webserver. 我从GitHub下载了Base64库。我在我的项目中使用它来解码来自webserver的图像。 I made this project for iOS7.0 The warning am getting with base64 is: 我为iOS7.0制作了这个项目。使用base64的警告是:

'base64Encoding' is deprecated : first deprecated in iOS7.0.

Thanks in advance. 提前致谢。

Started from iOS 7 SDK , NSData class now has methods that help encode/decode base 64 data and string objects with the following: 从iOS 7 SDK开始, NSData类现在具有帮助对base 64数据和字符串对象进行编码/解码的方法,具体如下:

- (instancetype)initWithBase64EncodedData:(NSData *)base64Data
                                  options:(NSDataBase64DecodingOptions)options

- (instancetype)initWithBase64EncodedString:(NSString *)base64String
                                    options:(NSDataBase64DecodingOptions)options

Once you got your NSData instances initialize a UIImage object with: + (UIImage *)imageWithData:(NSData *)data 一旦你的NSData实例初始化一个UIImage对象:+(UIImage *)imageWithData:(NSData *)数据

types of encoding: 编码类型:

 - NSDataBase64Encoding64CharacterLineLength     
   NSDataBase64Encoding76CharacterLineLength     
   NSDataBase64EncodingEndLineWithCarriageReturn     
   NSDataBase64EncodingEndLineWithLineFeed

types of decoding: 解码类型:

- NSDataBase64DecodingIgnoreUnknownCharacters

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 iOS Swift base64encoding与PAW应用程序Base64 Encoding不同 - iOS Swift base64encoding different than PAW app Base64 Encoding 不推荐使用initCircularRegionWithCenter:radius:identifier:在iOS 7.0中首次不推荐使用 - initCircularRegionWithCenter:radius:identifier: is deprecated: first deprecated in iOS 7.0 在iOS 7.0中不推荐使用scrollViewTexturedBackgroundColor - scrollViewTexturedBackgroundColor deprecated in iOS 7.0 initWithBase64Encoding不推荐使用的base64 - initWithBase64Encoding deprecated base64 不建议使用“ initWithPolygon:”和“ initWithPolyline:”:在iOS 7.0中首先不建议使用:iOS中是否有针对此警告的解决方案? - 'initWithPolygon:' & 'initWithPolyline:' are deprecated: first deprecated in iOS 7.0: is there any solution for this warning in iOS? 'sizeWithFont:constrainedToSize:lineBreakMode:'已被弃用:在iOS 7.0中首次弃用-使用-boundingRectWithSize:options:attributes:context: - 'sizeWithFont:constrainedToSize:lineBreakMode:' is deprecated: first deprecated in iOS 7.0 - Use -boundingRectWithSize:options:attributes:context: UIImage的Base64Encoding不匹配 - Base64Encoding of UIImage Doesn't Match 'initWithBase64Encoding'已弃用? - 'initWithBase64Encoding' is deprecated? UIAlertView 首先弃用 IOS 9 - UIAlertView first deprecated IOS 9 authenticateWithCompletionHandler:不推荐使用:首先在iOS 6.0中弃用 - authenticateWithCompletionHandler: is deprecated: first deprecated in iOS 6.0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM