1. 程式人生 > >iOS UIImageView 載入含有漢字的url處理方法

iOS UIImageView 載入含有漢字的url處理方法

NSString *url = [model.picstringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSetURLQueryAllowedCharacterSet]];

    [self.headImgViewsd_setImageWithURL:[NSURLURLWithString:url]];