objective c - Repositioning of a UIView after CGAffineRotation -
i'm drawing map of hexagons inside uiview , next step give in isometric view. this, transformed map using cgaffinetransform, rotation , scaling, reaching goal.
now, if map becomes bigger, when rotate it, lower left corner goes out screen, frame before , after transformation:
2012-03-07 17:08:06.160 pratofiorito[941:f803] x: 0.000000 - y: 0.000000 || width: 1408.734619 - height: 1640.000000 2012-03-07 17:08:06.163 pratofiorito[941:f803] x: -373.523132 - y: 281.054779 || width: 2155.781006 - height: 1077.890503
i can't understand new point of origin , how can calculate replace view correctly. can me?
Comments
Post a Comment