Updated animations to support iOS6 syntax

Changed animateKeyframesWithDuration to animateWithDuration
This commit is contained in:
Joe Blau 2014-04-13 08:31:50 -07:00
parent f187d9637b
commit ee5d0771ad
3 changed files with 18 additions and 8 deletions

View File

@ -1,5 +1,14 @@
# COSTouchVisualizer CHANGELOG
## 0.1.0
## 1.0.2
Initial release.
- Fixed bug in morph animation to make app compataible with iOS6
## 1.0.1
- Fixed setting for ripple color
- Updated documentation for how to configure ripple color
## 1.0.0
- Initial release.

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "COSTouchVisualizer"
s.version = "1.0.1"
s.version = "1.0.2"
s.summary = "Visualize iOS finger touches, gestures and holds on external displays"
s.description = <<-DESC
Touch Screen Visualizer visualizes your touches, gestures, and holds on
@ -18,7 +18,7 @@ Pod::Spec.new do |s|
s.source = { :git => "https://github.com/conopsys/COSTouchVisualizer.git", :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/joe_blau'
s.platform = :ios, '5.0'
s.platform = :ios, '6.0'
s.requires_arc = true

View File

@ -370,20 +370,21 @@
NSTimeInterval duration = .4;
NSTimeInterval delay = 0;
// Start
view.alpha = _touchAlpha;
view.transform = CGAffineTransformMakeScale(1, 1);
[UIView animateKeyframesWithDuration:duration/4 delay:delay options:0 animations:^{
[UIView animateWithDuration:duration/4 delay:delay options:0 animations:^{
// End
view.transform = CGAffineTransformMakeScale(1, 1.2);
} completion:^(BOOL finished) {
[UIView animateKeyframesWithDuration:duration/4 delay:0 options:0 animations:^{
[UIView animateWithDuration:duration/4 delay:0 options:0 animations:^{
// End
view.transform = CGAffineTransformMakeScale(1.2, 0.9);
} completion:^(BOOL finished) {
[UIView animateKeyframesWithDuration:duration/4 delay:0 options:0 animations:^{
[UIView animateWithDuration:duration/4 delay:0 options:0 animations:^{
// End
view.transform = CGAffineTransformMakeScale(0.9, 0.9);
} completion:^(BOOL finished) {
[UIView animateKeyframesWithDuration:duration/4 delay:0 options:0 animations:^{
[UIView animateWithDuration:duration/4 delay:0 options:0 animations:^{
// End
view.transform = CGAffineTransformMakeScale(1, 1);
} completion:^(BOOL finished) {