在前面弹出dataDetectorTypes(Textview)

时间:2015-02-24 09:51:43

标签: ios ipad textview datadetectortypes

我有一个主视图和详细视图(ipad)的行分隔符,并且在触摸textview时总是出现,这是一种总是在前面弹出窗口的方法吗?谢谢..

1 个答案:

答案 0 :(得分:0)

为此你必须创建一个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];