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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -