如何获取放置在 UITableViewCell
中的图像的来源?
我的意思是它的起源是在屏幕中而不是在 UITableViewCell
中。
最佳答案
UIView
有几个方法对这类东西非常有用,它们以 convertRect:...
和 convertPoint:...
并以 fromView:
和 toView:
结束。
在您的情况下,在 ImageView 上调用 convertPoint:CGPointZero toView:tableView
将返回您需要的内容。
这些方法仅在两个 View 位于同一 View 层次结构中时才有效。
关于ios - 如何获取放置在 tableviewcell 中的图像的原点(在屏幕中)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37922209/