-(void)inputViewDidShow:(WLCommentInputView *)CommentView orginY:(CGFloat)orginY{
CGRect rectInTableView = [self.tableView rectForRowAtIndexPath:_commentIndexPath];
CGRect rect = [self.tableView convertRect:rectInTableView toView:[self.tableView superview]];
CGFloat maxY = CGRectGetMaxY(rect);
CGPoint point = self.tableView.contentOffset;
point.y -= (orginY - maxY);
[self.tableView setContentOffset:point animated:YES];
}
网友评论