评论自动移动到cell体验
作者:
leonardni | 来源:发表于
2017-04-18 09:15 被阅读19次-(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];
}
本文标题:评论自动移动到cell体验
本文链接:https://www.haomeiwen.com/subject/jpffzttx.html
网友评论