适用于 iOS 的 UISwitch 动画应用程序

UISwitchAnimator

样本

点击打开优酷视频优酷

Installation

required

  • OpenCV
  • python
    • ffmpeg-python
    • cv2

installation

  1. Download this source.
  2. Download your video.
  3. Run script to generate json file for animation. please refer next section generate json file
  4. Place generated json file which name is ‘data.json’ under ‘UISwitchAnimator/UISwitchAnimato/’.

generate json file

python generate-json.py <downloaded video path> <width pixel> <height pixel>

sample

python generate-json.py video.mp4 48 36

Usage

launch app and double tap view.

GitHub

点击跳转