我试图像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];
但我需要这样: