【问题标题】:Make popup of dataDetectorTypes (Textview) in front在前面弹出 dataDetectorTypes (Textview)
【发布时间】:2015-04-25 21:17:17
【问题描述】:

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

【问题讨论】:

    标签: ios ipad textview datadetectortypes


    【解决方案1】:

    为此,您必须创建一个 UIView 并像这样使用,

    //用于设置警报视图

    [[self.view superView] bringSubviewToFront: YOurCreatedView];
    

    & 用于关闭警报视图

    [[self.view superView] sendSubviewToBack: YOurCreatedView];
    

    And For Animation Use below Method..

    [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];
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-06-22
      • 1970-01-01
      • 1970-01-01
      • 2017-02-01
      • 1970-01-01
      • 1970-01-01
      • 2022-08-12
      相关资源
      最近更新 更多