美文网首页
ios子视图跟随父视图的

ios子视图跟随父视图的

作者: 中流者结使也 | 来源:发表于2016-05-12 16:47 被阅读215次

项目中要实现一个下拉收起菜单的动画,动画里视图的高度发生变化,发现子视图不执行动画,超出了父视图的范围,发现与要设置俯视图的属性clipsToBounds为YES,子视图就会跟着父视图执行动画。

@property(nonatomic) BOOL clipsToBounds;// When YES, content and subviews are clipped to the bounds of the view. Default is NO.

相关文章

网友评论

      本文标题:ios子视图跟随父视图的

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