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

iOS 7, errors logged when using [UIView beginAnimations:nil context:nil] #24

Open
lpotherat opened this issue Oct 14, 2013 · 0 comments

Comments

@lpotherat
Copy link
Contributor

The toast animations made with [UIView beginAnimations:nil context:nil]; trigger log in the console when using in ios 7 simulator, here is the log :

Error: CGContextTranslateCTM: invalid context 0x0. This is a serious error. 
This application, or a library it uses, is using an invalid context  and is thereby 
contributing to an overall degradation of system stability and reliability. 
This notice is a courtesy: please fix this problem. It will become a fatal 
error in an upcoming update.

My correction is to use this instead :

[UIView animateWithDuration:0.3 animations:^{
    v.alpha = 1;
}];

Since it's available on iOS 4.0 I think it's a good correction.

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

No branches or pull requests

1 participant