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
  • 13,521
  • 11
  • 61
  • 126

1 Answers1

1

try using

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