在 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 的电影文件……这要简单得多。
- 在
PHLivePhotoView
中显示用户的实时照片内容. - 调用
startPlaybackWithStyle:
并通过.Hint
用于播放样式以获得 HIG 正在谈论的“提示”。 - 没有第三步。
关于swift - 如何为Live Photo提供 "hint",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36782868/