我resultString是「PHNhbWxwOlJlc3BvbnNlIH ... c3BvbnNlPgoK」,當我解碼它顯示我作爲decodedData爲零。initWithBase64EncodedString回零
的NSData * decodedData = [[NSData的頁頭] initWithBase64EncodedString:resultString選項:0];
我也試過這個字符串https://www.base64decode.org/, 它成功地顯示結果。
這裏解碼有什麼問題?
你甚至試圖所以搜索一下嗎? :|希望此鏈接將幫助您 https://stackoverflow.com/questions/19088231/base64-decoding-in-ios-7 –
是我第一次嘗試搜索,然後我張貼。 –