Base64 encoding in iOS 7

Over the years Apple has slowly but surely filled in some pretty conspicuous gaps in their application platform for iOS developers. They didn’t even support working with JSON data until iOS 5 introduced NSJSONSerialization!  Another small, but important, gap that was filled in by iOS 7 is proper support for encoding and decoding data in Base64; such as base64EncodedStringWithOptions: and initWithBase64EncodedString:options:.

NSHipster has a good, quick overview of what Base64 is all about with an example here.

StackOverflow shows how to both encode and decode in Base64 here.

Learn more about Base64 encoding on the Wikipedia page here.

Thanks Apple! It’s about time…

About Josh Smith

Josh Smith is a musician at heart, and a software developer by obsession. He lives in Arizona, plays classical music on the piano, jazz on the guitar, and enjoys brutally long rides on his bicycle. He has a wonderful wife and thinks that, in general, life is good.
This entry was posted in iOS7. Bookmark the permalink.

3 Responses to Base64 encoding in iOS 7

  1. Pingback: Dew Drop – November 21, 2013 (#1670) | Morning Dew

  2. I am happy that I have your incredible way of writing the submit.Extremely content material.Now useful and beneficial it is for me to realize and simple to apply, to find the notion.

  3. Deb says:

    I was using base64encoding in an ios7 app project when i noticed the warning about it being deprecated in ios7. Thanks for the links and your pointers.

Comments are closed.