iOS 加载动画:Spinner
pdce
9年前
Spinner 是用 Swift 写成的 VMGearLoadingView 端口,可以创建漂亮的动画,用于加载数据时候的视图。
Usage
- Import all images and SpinnerView.swift in your existing project.
- Initialise a new istance of VMGearLoadingView: var spinner = VMGearLoadingView(showGearLoadingForView: self.view)
- Hide when necessary with: if let spinner = getGearLoadingForView(self.view) as? VMGearLoadingView{ spinner.hideGearLoadingForView(spinner) }