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

delphi - TJvHidDeviceController "DevicePath" always showing "\" -

web applications - Making Python scripts work on MAMP -

cocoa - Converting NSString to keyCode+modifiers for AXUIElementPostKeyboardEvent -