子视图动画显示为POPView

时间:2014-10-17 09:37:36

标签: ios objective-c iphone uiviewanimation

我试图像pop视图一样显示subView动画,但我只知道这样:

twobuttonView = [[UIView alloc] init];
twobuttonView.frame = CGRectMake(300, 60, 80, 100);
[self.view addSubview:twobuttonView];

[UIView animateWithDuration:0.8
                 animations:^{
                     twobuttonView.frame = CGRectMake(220, 50, 100, 80); // its final location
                 }];
twobuttonView.backgroundColor = [UIColor whiteColor];

但我需要这样:

enter image description here

0 个答案:

没有答案