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

Animation cannot work when using IBOutlet #383

Open
KnightJoker opened this issue Sep 21, 2016 · 1 comment
Open

Animation cannot work when using IBOutlet #383

KnightJoker opened this issue Sep 21, 2016 · 1 comment
Labels

Comments

@KnightJoker
Copy link

Hello guys~
I dragged an IBOutlet from storyboard, and I use Masonry to change it in a UIView animation block, but the animation seems not work so well.
Code:

[UIView animateWithDuration:1.0
delay:0.0
options:UIViewAnimationOptionCurveEaseIn
animations:^{
[self.registerView mas_updateConstraints:^(MASConstraintMaker *make){
make.top.mas_equalTo(0);
}];
}
completion:nil];

@robertjpayne
Copy link
Member

@KnightJoker Masonry cannot update any constraints created by IB, you have to create constraints in code with Masonry to also be able to update them in code with Masonry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants