美文网首页
iOS constant 动画

iOS constant 动画

作者: 啵啵_long_港 | 来源:发表于2019-01-03 16:04 被阅读17次

方法一:
[self.view layoutIfNeeded];
[UIView animateWithDuration:0.3
animations:^{
self.textlayout.constant = 0;
[self.view layoutIfNeeded]; // Called on parent view
}];


原文:https://blog.csdn.net/chaokuzc/article/details/46458809

方法二:
self.textlayout.constant = 0;
[UIView animateWithDuration:0.3
animations:^{
[self.view layoutIfNeeded]; // Called on parent view
}];


原文:https://blog.csdn.net/phyky/article/details/70789463

相关文章

网友评论

      本文标题:iOS constant 动画

      本文链接:https://www.haomeiwen.com/subject/bgafrqtx.html