Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-10010][TIMOB-10047] Modernize animation, fix autoreverse problems #2630

Merged
merged 6 commits into from Jul 25, 2012
Merged

[TIMOB-10010][TIMOB-10047] Modernize animation, fix autoreverse problems #2630

merged 6 commits into from Jul 25, 2012

Conversation

sptramer
Copy link
Contributor

This moves the animation subsystem to the block-based system available since iOS 4.x, and also fixes an issue with autoreverse animations where they would be rendered incorrectly upon animation completion (and ignore many properties changed during the animation). Should be fully regression tested against all available KitchenSink animation suites (Base UI->Animation).

TIMOB-10010
TIMOB-10047

if ([animation isReverse]) {
RELEASE_TO_NIL(animation.animatedView);

animation = [animation reverseAnimation]; // Use the original animation for correct evenitng
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sp: *eventing. :)

@sptramer
Copy link
Contributor Author

NOTE: There should also probably be some internal testing done with enterprise apps known to use animations extensively. This will help get an idea of if there are other important behavior changes.

[UIView setAnimationRepeatCount:repeatCount];
}
else {
[UIView setAnimationRepeatCount:1.0];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be shortened to [UIView setAnimationRepeatCount:repeatCount != 0.0 ? repeatCount : 1.0];

@mstepanov
Copy link
Contributor

Code reviewed. APPROVED

@mstepanov
Copy link
Contributor

FT PASSED
Tested KS Animations/Windows, JIRA test cases, NBC app on iPhone 4S/iPad 2

mstepanov pushed a commit that referenced this pull request Jul 25, 2012
[TIMOB-10010][TIMOB-10047] Modernize animation, fix autoreverse problems
@mstepanov mstepanov merged commit 014b86f into tidev:master Jul 25, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants