概要
Perform UIView animations serially without blocking the main thread, using the same APIs you already know and love.
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルBRYSerialAnimationQueue
Perform UIView animations serially without blocking the main thread, using the same APIs you already know and love.
Installation
Via CocoaPods, of course:
pod "BRYSerialAnimationQueue"
Why?
The main goal of the class is to make it easy to perform event-based animations (e.g. a user taps a button or a network callback completes). One perfect example is displaying banners inside of an application when push notifications are received. Simply add animation blocks to a BRYSerialAnimationQueue instance and they'll be executed only once all of the previously queued animations have completed.
An added benefit is that nested animation code like this:
[UIView animateWithDuration:duration animations:^{
label.alpha = 1;
} completion:^(BOOL finished) {
[UIView animateWithDuration:duration delay:delay animations:^{
label.alpha = 0;
} completion:^(BOOL finished) {
[label removeFromSuperview];
}];
}];
Can be replaced with something a little cleaner, like:
BRYSerialAnimationQueue *queue = [[BRYSerialAnimationQueue alloc] init];
[queue animateWithDuration:duration animations:^{
label.alpha = 1;
}];
[queue animateWithDuration:duration delay:delay animations:^{
label.alpha = 0;
} completion:^(BOOL finished) {
[label removeFromSuperview];
}];
License
Available for use under the MIT license: http://bryan.mit-license.org
関連プロジェクトを探す
読み込み中…