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

2、调用UiView动画

 

    WeakSelf;

    self.detailsViewBom.constant += 230;

    [UIView animateWithDuration:animotiontime animations:^{

        //需要这样去重制View

        [weakSelf.view layoutIfNeeded];

        

    } completion:^(BOOL finished){

        

        weakSelf.detailsBtn.userInteractionEnabled = YES;

        

    }];

1、在为控制器添加xib的时候,由于版本更新需要将safe alert的勾选取消

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

原文地址:https://www.cnblogs.com/xujiahui/p/9832035.html