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];
精彩评论