當前位置:首頁 » 文件管理 » ios上傳頭像

ios上傳頭像

發布時間: 2025-01-01 13:49:09

『壹』 IOS 我要上傳頭像 現在的問題是 能傳成功 但是伺服器那 圖片打不開 說我傳上去的Str不對

//圖片轉字元串
-(NSString *)UIImageToBase64Str:(UIImage *) image

{

NSData *data = UIImageJPEGRepresentation(image, 1.0f);

NSString *encodedImageStr = [data :];

return encodedImageStr;

}

//字元串轉圖片

-(UIImage *)Base64StrToUIImage:(NSString *)_encodedImageStr

{

NSData *_decodedImageData = [[NSData alloc] initWithBase64Encoding:_encodedImageStr];

UIImage *_decodedImage = [UIImage imageWithData:_decodedImageData];

return _decodedImage;

}

『貳』 ios15.4.1更新後appstore頭像沒了

個人信息獲取照片。ios15.4.1在每次更新後,都會出現頭像沒了的情況,需要自己去個人信息,打開頭像後點擊獲取照片,上傳即可。

熱點內容
掛qphp 發布:2025-03-14 10:13:12 瀏覽:640
資料庫關系表示 發布:2025-03-14 10:13:11 瀏覽:232
腳本抖音號 發布:2025-03-14 10:11:07 瀏覽:668
演算法第 發布:2025-03-14 04:40:56 瀏覽:227
天選2什麼配置好 發布:2025-03-14 03:37:17 瀏覽:287
魅族手機怎麼找回密碼 發布:2025-03-14 02:35:48 瀏覽:298
配置高低主要看什麼 發布:2025-03-14 01:49:22 瀏覽:88
locpython 發布:2025-03-14 01:12:50 瀏覽:352
java數組的定義方法 發布:2025-03-14 00:53:25 瀏覽:527
壓縮性綳帶 發布:2025-03-14 00:30:21 瀏覽:187