0

I need to resize an UImageView dynamically

for that I need to find the UImageview's absolute rect on screen, x,y is what i need actually.

because my ImageView is inside another view, if i query the ImageView frame, i get x,y of it to be 0,0

how do I find the absolute rect on screen ?

Lena Bru
  • 12,949
  • 9
  • 57
  • 112

1 Answers1

1

try using

CGRect targetFrame = [self.view convertRect:imageView.frame fromView:imageView];
Tomer Even
  • 4,606
  • 2
  • 28
  • 36