_isOrderOpen = !_isOrderOpen;
    [UIView animateWithDuration:0.5 animations:^{
        if (_isOrderOpen) {
            _orderControlConstant.constant = 50;
        } else {
            _orderControlConstant.constant = 0;
        }
        [self.view layoutIfNeeded];
    }];

 

posted on 2016-05-18 10:45  怡情_老二  阅读(100)  评论(0编辑  收藏  举报