我有一个主视图和细节视图(Ipad)的分隔线,在触摸文本视图时总是会出现,这是使前面弹出的方式吗?谢谢。
发布于 2015-02-24 13:02:20
为此,您必须创建一个UIView &使用类似的
//用于设置警报视图
[[self.view superView] bringSubviewToFront: YOurCreatedView];&用于解雇警报视图
[[self.view superView] sendSubviewToBack: YOurCreatedView];并且对于动画使用下面的方法。
[UIView animateWithDuration:0.25 animations:^{
//
} completion:^(BOOL finished) {
//
}];或以下方法..。
CATransform3D transform3d = CATransform3DMakeScale(1.15, 1.15, 1.15);
cell.layer.transform = transform3d;
//4. Define the final state (After the animation) and commit the animation
[UIView beginAnimations:@"translation" context:NULL];
[UIView setAnimationDuration:0.8];
[[self.view superView] bringSubviewToFront: YOurCreatedView];
YOurCreatedView.alpha = 1;
YOurCreatedView.layer.transform = CATransform3DIdentity;
YOurCreatedView.layer.shadowOffset = CGSizeMake(0, 0);
[UIView commitAnimations];https://stackoverflow.com/questions/28692594
复制相似问题