项目
在 GitHub 查看
ArtFeel/AFViewShaker
关于
AFViewShaker is simple as a brick utility for UIView shake animation.
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- -1
- 1个月
- -2
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文AFViewShaker
About
AFViewShaker is simple as a brick utility for UIView shake animation.

Using
Create shaker for one view
AFViewShaker * viewShaker = [[AFViewShaker alloc] initWithView:self.formView];
Create shaker for multiple views
NSArray * allFields = @[self.emailField, self.passwordField];
AFViewShaker * viewShaker = [[AFViewShaker alloc] initWithViewsArray:allFields];
Shake with default parameters
[self.viewShaker shake];
Shake with additional parameters
[self.viewShaker shakeWithDuration:0.6 completion:^{
NSLog(@"Hello World!");
}];
Installation
Using CocoaPods
Add the following to your Podfile and run $ pod install
pod "AFViewShaker", "~> 0.0.5"
Using Carthage
Add the following to your Cartfile and run $ carthage update
github "ArtFeel/AFViewShaker", ~> 0.0.5
For Xamarin users
If you are using Xamarin.iOS, check out this port by Robert Waggott.
探索相关项目
加载中…