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的勾選取消
在約束視圖距離頂端以及底端距離時勾選一下這一個即可