美文网首页
iOS --- 获取当前cell 相对于self.view 当前

iOS --- 获取当前cell 相对于self.view 当前

作者: BabyNeedCare | 来源:发表于2018-11-19 10:17 被阅读0次

   CGRectrect = [tableViewrectForRowAtIndexPath:indexPath];

        /// 获取当前cell 相对于self.view 当前的坐标

        rect.origin.y          = rect.origin.y- [tableViewcontentOffset].y;

cell 中的图片frame处理:

        CGRectimageViewRect  = imageView.frame;

        imageViewRect.origin.y= rect.origin.y+ imageViewRect.origin.y;

相关文章

网友评论

      本文标题:iOS --- 获取当前cell 相对于self.view 当前

      本文链接:https://www.haomeiwen.com/subject/yrdofqtx.html