首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使dataDetectorTypes (Textview)在前面弹出

使dataDetectorTypes (Textview)在前面弹出
EN

Stack Overflow用户
提问于 2015-02-24 09:51:42
回答 1查看 80关注 0票数 0

我有一个主视图和细节视图(Ipad)的分隔线,在触摸文本视图时总是会出现,这是使前面弹出的方式吗?谢谢。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-02-24 13:02:20

为此,您必须创建一个UIView &使用类似的

//用于设置警报视图

代码语言:javascript
复制
[[self.view superView] bringSubviewToFront: YOurCreatedView];

&用于解雇警报视图

代码语言:javascript
复制
[[self.view superView] sendSubviewToBack: YOurCreatedView];

并且对于动画使用下面的方法。

代码语言:javascript
复制
[UIView animateWithDuration:0.25 animations:^{
        //     
    } completion:^(BOOL finished) {
        //
    }];

或以下方法..。

代码语言:javascript
复制
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];
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28692594

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档