【发布时间】:2017-08-23 06:50:20
【问题描述】:
我添加了一个 UIView(其中包含一个 UIVisualEffectView - blur)作为另一个视图的子视图。我想以径向方式从其中心向外向边缘设置子视图的动画,就像一个扩大的圆圈。这应该在下面显示它的 superView。
这是我的代码:
self.blurView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, imageHeight)];
[superView addSubview: self.blurView];
UIVisualEffect *blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight];
UIVisualEffectView *visualEffectView = [[UIVisualEffectView alloc] initWithEffect:blurEffect];
visualEffectView.frame = self.blurView.bounds;
[self.blurView addSubview:visualEffectButtonView];
【问题讨论】:
标签: ios objective-c animation