一: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

相关文章:

  • 2021-04-10
  • 2021-12-10
  • 2021-09-22
  • 2022-12-23
  • 2021-11-30
  • 2021-08-27
  • 2021-12-05
  • 2021-06-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-23
  • 2022-12-23
相关资源
相似解决方案