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
Post a Comment