Objective-C UIImageOrientation

June 17, 2009 § Leave a comment

  • UIImageOrientationUp
  • UIImageOrientationDown (rotate 180 degree)
  • UIImageOrientationLeft (rotate 90 degree counterclockwise)
  • UIImageOrientationRight (rotate 90 degree clockwise)
  • UIImageOrientationUpMirrored (flipped horizontally)
  • UIImageOrientationDownMirrored (mirror of UIImageOrientationDown)
  • UIImageOrientationLeftMirrored (mirror of UIImageOrientationLeft)
  • UIImageOrientationRightMirrored (mirror of UIImageOrientationRight)

UIImage *testImage = [UIImage imageNamed:@”btn_flipview.png”];
UIImageView *testImageView = [[UIImageView alloc] initWithImage:testImage];
testImage.imageOrientation = UIImageOrientationRight;

error: object cannot be set – either read only property or no setter found

warning: type of setter ‘setImageOrientation:’ must be ‘void’ instead of ‘id’


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

What’s this?

You are currently reading Objective-C UIImageOrientation at Web Builders.


%d bloggers like this: