如何为 Live Photo 提供 "hint"

How to provide "hint" for Live Photo

在 Live Photos 部分下的 iOS 人机界面指南中,Apple 是这样说的,

"Make sure that users can distinguish a Live Photo from a traditional still photo. It’s especially important to help users make this distinction when they can share the photo. The best way to show users that they’re viewing a Live Photo is to display a little movement that gives a hint of the experience. In cases where a hint isn’t possible, you can display the system-provided badge on the Live Photo. A Live Photo never displays a playback button that looks like a video playback button."

我对如何在我的实时照片中提供一点点运动暗示感到困惑。 我如何提供移动提示?

您无需将 Live Photo 分解成静止帧并构建动画 UIImage,或挖掘出 Live Photo 的电影文件……这要简单得多。

  1. PHLivePhotoView.
  2. 中显示用户的实况照片内容
  3. 呼叫startPlaybackWithStyle:并通过 .Hint 用于播放样式以获得 HIG 正在谈论的 "hint"。
  4. 没有第三步。