Creating a base-64 string from NSData

主宰稳场 提交于 2019-11-28 10:10:26
Saurabh

please try to search before posting questions I already post a answer for this here - Verifying a Receipt with the App Store - try this function there.

Yang

(if you targeting on IOS 7 ...) There is an easy way using provided API: https://stackoverflow.com/a/19088341/2481444

I also tested the accepted code. They both generate the same result.

It also has decoding function. @S.J

NSString* base64String = [nsdata base64Encoding];
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!