我很高兴看到这个:answer for how to convert point of a subview 它在模拟器上对我来说非常完美。convertPoint:fromView:在模拟器上运行良好,不在设备上
但由于某种原因,它不能在设备上工作... 它可能是视图的位置是不同的设备管理 - 或者它只是另一个谜?或者,(希望)我错误地写它,你们可以帮助... :)
这里是我的路线:
CGPoint yoel = [imagePressed.imageView convertPoint:imagePressed.frame.origin toView:nil];
我注意到,以及,用'CGPoint',而不是'CGRect'和你的回答是正确的修复。但我想知道为什么会发生这种情况,或许我们的方法有问题? – mokagio 2012-11-01 15:54:01