Get size of UIView after applying CGAffineTransform

Posted by Ican Zilb on Stack Overflow See other posts from Stack Overflow or by Ican Zilb
Published on 2010-04-22T21:50:19Z Indexed on 2010/04/22 21:53 UTC
Read the original article Hit count: 505

I was surprised not to find an answer to this question, maybe is something very simple I somehow overlook :

How to get the real size of an UIView after I apply a CGAffineTransform to it?

eg.

my UIView has size 300 x 200, I apply a scaling transform let's say factor 2 both horizontal and vertical, so the UIView now takes 600 x 400 on the screen, but it's bounds and it's layer's bounds are still returning a size of 300 x 200 ... where do I find the real size of the UIView ?

© Stack Overflow or respective owner

Related posts about uiview

Related posts about objective-c