开发者

Creating a base-64 string from NSData

How is it possible to get a base64 stri开发者_C百科ng from an NSData instance?


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.


(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];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜