Base64Encoding is deprecated : first deprecated in iOS 7.0

Code cracker

I've downloaded the Base64 library from GitHub.I used it in my project to decode the Images from webserver. I made this project for iOS7.0 The warning am getting with base64 is:

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

Thanks in advance.

Shams Ahmed

Started from iOS 7 SDK , NSData class now has methods that help encode/decode base 64 data and string objects with the following:

- (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

types of encoding:

 - NSDataBase64Encoding64CharacterLineLength     
   NSDataBase64Encoding76CharacterLineLength     
   NSDataBase64EncodingEndLineWithCarriageReturn     
   NSDataBase64EncodingEndLineWithLineFeed

types of decoding:

- NSDataBase64DecodingIgnoreUnknownCharacters

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

Replacement for deprecated sizeWithFont: in iOS 7?

From Java

Replacement for deprecated -sizeWithFont:constrainedToSize:lineBreakMode: in iOS 7?

From Java

UIAlertView first deprecated IOS 9

From Dev

Alternative to deprecated AudioSessionGetProperty, for iOS 7

From Dev

iOS 7 - region.center deprecated

From Dev

Deprecated in iOS7: AudioSessionSetProperty

From Dev

sizeWithFont:constrainedToSize:lineBreakMode: deprecated in iOS7

From Dev

GKPeerPickerController has been deprecated in iOS 7

From Dev

reportAchievementWithCompletionHandler deprecated in iOS7 but replacement not specified

From Dev

iOS 7 - UIPopoverController : deprecated arrows?

From Dev

UITabBarItem setFinishedSelectedImage: deprecated in iOS7

From Dev

IOS 7 sizeWithFont Deprecated

From Dev

iOS 7 : 'isa' is deprecated

From Dev

sizeWithFont: ConstrainedToSize: lineBreakMode: method is deprecated in iOS 7

From Dev

Performance issue in iOS 7 due to deprecated methods

From Dev

'isConnected' deprecated in iOS 7

From Dev

iOS7: method drawMapRect is deprecated

From Dev

Swift - Coordinate is unavailable: APIs deprecated as of iOS 7

From Dev

ios 7 initWithOverlay deprecated

From Dev

MKPolylineView initWithPolyLine: is deprecated in iOS 7

From Dev

Objective-C - 'sendSynchronousRequest:returningResponse:error:' is deprecated: first deprecated in iOS 9.0

From Dev

'lock' is deprecated: first deprecated in iOS 8.0 - Use -performBlockAndWait: instead - iOS coredata warning

From Dev

Xcode 7 warning loadNibNamed:owner is deprecated: first deprecated in OS X 10.8

From Dev

IOS 7 sizeWithFont Deprecated

From Dev

Performance issue in iOS 7 due to deprecated methods

From Dev

Base64Encoding is deprecated : first deprecated in iOS 7.0

From Dev

Lost with the replacement for deprecated sizeWithFont: in iOS 7

From Dev

Xcode 7 warning loadNibNamed:owner is deprecated: first deprecated in OS X 10.8

From Dev

'PKAddressField' is deprecated: first deprecated in iOS 11.0 - Use PKContactField and -requiredShippingContactFields / -requiredBillingContactFields

Related Related

  1. 1

    Replacement for deprecated sizeWithFont: in iOS 7?

  2. 2

    Replacement for deprecated -sizeWithFont:constrainedToSize:lineBreakMode: in iOS 7?

  3. 3

    UIAlertView first deprecated IOS 9

  4. 4

    Alternative to deprecated AudioSessionGetProperty, for iOS 7

  5. 5

    iOS 7 - region.center deprecated

  6. 6

    Deprecated in iOS7: AudioSessionSetProperty

  7. 7

    sizeWithFont:constrainedToSize:lineBreakMode: deprecated in iOS7

  8. 8

    GKPeerPickerController has been deprecated in iOS 7

  9. 9

    reportAchievementWithCompletionHandler deprecated in iOS7 but replacement not specified

  10. 10

    iOS 7 - UIPopoverController : deprecated arrows?

  11. 11

    UITabBarItem setFinishedSelectedImage: deprecated in iOS7

  12. 12

    IOS 7 sizeWithFont Deprecated

  13. 13

    iOS 7 : 'isa' is deprecated

  14. 14

    sizeWithFont: ConstrainedToSize: lineBreakMode: method is deprecated in iOS 7

  15. 15

    Performance issue in iOS 7 due to deprecated methods

  16. 16

    'isConnected' deprecated in iOS 7

  17. 17

    iOS7: method drawMapRect is deprecated

  18. 18

    Swift - Coordinate is unavailable: APIs deprecated as of iOS 7

  19. 19

    ios 7 initWithOverlay deprecated

  20. 20

    MKPolylineView initWithPolyLine: is deprecated in iOS 7

  21. 21

    Objective-C - 'sendSynchronousRequest:returningResponse:error:' is deprecated: first deprecated in iOS 9.0

  22. 22

    'lock' is deprecated: first deprecated in iOS 8.0 - Use -performBlockAndWait: instead - iOS coredata warning

  23. 23

    Xcode 7 warning loadNibNamed:owner is deprecated: first deprecated in OS X 10.8

  24. 24

    IOS 7 sizeWithFont Deprecated

  25. 25

    Performance issue in iOS 7 due to deprecated methods

  26. 26

    Base64Encoding is deprecated : first deprecated in iOS 7.0

  27. 27

    Lost with the replacement for deprecated sizeWithFont: in iOS 7

  28. 28

    Xcode 7 warning loadNibNamed:owner is deprecated: first deprecated in OS X 10.8

  29. 29

    'PKAddressField' is deprecated: first deprecated in iOS 11.0 - Use PKContactField and -requiredShippingContactFields / -requiredBillingContactFields

HotTag

Archive