不能自己调用自己,而是 用其它来减去,

第一种成了自调用了,  

  bottomView.frame = CGRectMake(bottomView.frame.origin.x, bottomView.frame.origin.y - contentSize.height, bottomView.frame.size.width, bottomView.frame.size.height + contentSize.height);

        self.inputView.frame = CGRectMake(self.inputView.frame.origin.x, self.view.frame.size.height - contentSize.height - self.faceInputView.frame.size.height - 5, self.inputView.frame.size.width,contentSize.height + 5);

原文地址:https://www.cnblogs.com/guligei/p/3501827.html