iOS XIB使用中适配iPhoneX的安全区域、调用UiView动画

二、调用UiView动画动画

 

    WeakSelf;spa

    self.detailsViewBom.constant += 230;3d

    [UIView animateWithDuration:animotiontime animations:^{blog

        //须要这样去重制Viewanimation

        [weakSelf.view layoutIfNeeded];it

        

    } completion:^(BOOL finished){io

        

        weakSelf.detailsBtn.userInteractionEnabled = YES;class

        

    }];im

 

一、在为控制器添加xib的时候,因为版本更新须要将safe alert的勾选取消d3

 

在约束视图距离顶端以及底端距离时勾选一下这一个便可

相关文章
相关标签/搜索