swift 里怎么上传图片,服务器端的图片怎么获取及显示?

你好,在 9.x以后的 SDK 版本中,文件接口有一些调整。如果使用 9.x 以及之后的 SDK 版本,

文件上传使用:

-[uploadWithProgress:completionHandler:]

文件下载使用:

-[downloadWithProgress:completionHandler:]

import LeanCloud后,本地无getObjectInBackgroundWithId方法,要怎么处理?

在 9.x 之前的 SDK 版本中,文件上传和下载使用 saveInBackgroundWithBlockgetDataInBackgroundWithBlock,AVFile 没有 getObjectInBackgroundWithId 方法。

在swift中具体应如何调用?

import LeanCloud后没有AVFile.

Swift SDK 目前暂时还没有支持 AVFile 类型,Swift SDK 正在开发中。