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

 

在約束視圖距離頂端以及底端距離時勾選一下這一個便可

相關文章
相關標籤/搜索