-[__NSCFString absoluteURL]:
2015-02-27 15:48
423 查看
请求图片时容易出现此错误
UIButton *avatarButton = [UIButton buttonWithType:UIButtonTypeCustom];
[avatarButton setImageWithURL:[NSString stringWithFormat:@"http:xxx.png"]];//错误
[avatarButton setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http:xxx.png"]]];//正确
UIButton *avatarButton = [UIButton buttonWithType:UIButtonTypeCustom];
[avatarButton setImageWithURL:[NSString stringWithFormat:@"http:xxx.png"]];//错误
[avatarButton setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http:xxx.png"]]];//正确
相关文章推荐
- [__NSCFString absoluteURL]错误的解决方案
- NSHTTPURLResponse的localizedStringForStatusCode
- NSCFString objectForKey unrecognized selector s...
- uitableview 滑动时 报错-[__NSCFString objectAtIndex:]: unrecognized selector sent to instance
- [__NSCFString containsString:]: unrecognized selector sent to instance 的解决方案
- iOS multipart/form-data格式上传文件的两种格式 uiimage 和 nscfstring
- NSString NSCFString区别
- iOS开发之'-[__NSCFString appendString:]: nil argument'
- __NSCFString containsString:]: unrecognized selector sent to instance 0x7f876b79e160
- IOS解析json报错-[__NSCFString objectFromJSONString]: unrecognized selector sent to 解决办法
- reason: '-[__NSCFString replaceOccurrencesOfString:withString:options:range:]: Range {0, 6} out of b
- [__NSCFString ma_MD5String]: unrecognized selector sent to instance 0x7ffeb34aaa80'
- iOS_无法定位的崩溃异常_[NSCFString _isResizable]
- NSString NSCFString isMemberOfClass 遇到的相关的问题
- NSCFString与NSString类型的字符串导致的崩溃问题
- -[__NSCFString objectFromJSONString]: unrecognized selector sent to 解决办法
- swift有关setValue崩溃,报告错误为NSCFString longValue unrecognized selector sent to instance
- '-[__NSCFString replaceOccurrencesOfString:withString:options:range:]: nil argument'
- IOS [__NSCFString containsString:]报错、闪退、崩溃
- [__NSCFString containsString:]: unrecognized selector sent to instance 0x17d68490