iphone - CGAffineTransformMakeRotation not only rotate, but also move and stretch UIImageView -


i'm trying rotate uiimageview degrees cgaffinetransformmakerotation() function, end image not rotates, moved coordinates , stretched o.o have no clue why happen... here code:

self.arrowtopoi.transform = cgaffinetransformmakerotation( m_pi / 4 )

don't know if can help, uiimageview resides inside custom uitablecellview, automatically changes its' height accommodate webview content.

any appreciated!

  1. try selecting appropriate contentmode (property how image adjusted when bounds change, do). default uiviewcontentmodescaletofill, example uiviewcontentmodescaleaspectfill there strange behavior sounds similar problem.
  2. be aware it's rotated around uiimageview's center.

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -