ios - UIView size after transform -


i need size of uiview after applying transform such cgaffinetransformscale , cgaffinetransformrotate .i use below method size of view not able accurate size after applying cgaffinetransformrotate.

  cgsizeapplyaffinetransform(view.bound.size,view.transform) 

i using method because view.frame becomes null after applying transform.as mentioned in apple docs. help.

the notion of "size" has no obvious meaning after application of transform, , rotation transform. why not supposed access frame of view transform not identity transform. cgsizeapplyaffinetransform give accurate information under 1 interpretation of notion of size (and frame, gives nonrotated bounding box). might want think further, though, why believe need information.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -