您的位置:首页 > 移动开发 > IOS开发

iOS文件上传文件URL错误Invalid parameter not satisfying: fileURL'

2013-12-25 22:06 411 查看
一:iOS文件上传提示URL错误 Invalid parameter not satisfying: fileURL'

二:解决方法:

NSString *imagePath = [[NSBundle mainBundle] pathForResource:@"wallpaper" ofType:@"jpg"];
NSURL* imageURL = [NSURL fileURLWithPath:imagePath isDirectory:NO];


注意:FileUrl 要调用 NSURL的 file 开头的类方法;

参考http://stackoverflow.com/questions/9858858/unable-to-change-desktop-image-because-url-is-not-file-url
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐