• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: wacky image stretching on rotation (repost)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: wacky image stretching on rotation (repost)


  • Subject: RE: wacky image stretching on rotation (repost)
  • From: Julius Oklamcak <email@hidden>
  • Date: Fri, 06 Jul 2012 05:44:04 -0400

Check self.thumbImageView.contentMode - it's probably the default
UIViewContentModeScaleToFill (should be UIViewContentModeCenter). Also
ensure that the UIImage that you provide really has square dimensions. I had
the exact same issue when rotating the UIImageView of a UIButton...

> I have a UIImageView in a custom TableViewCell that I want to rotate
> to arbitrary angles.  When I apply a rotation transformation like so:
>
> CGAffineTransform rotation = CGAffineTransformMakeRotation(15 * (M_PI /
180));
>
> [self.thumbImageView setTransform:rotation];
>
> The image is not only rotated but stretched significantly in the
horizontal
> direction.  It's not a content-resizing problem, because the originally
> square UIImageView is now clearly not square.  Screen shot here:
> http://farm8.staticflickr.com/7132/7513267936_bbff9019b5_b.jpg
>
> Anybody know what's going on with this?

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: wacky image stretching on rotation (repost)
      • From: Gavin Stokes <email@hidden>
References: 
 >wacky image stretching on rotation (repost) (From: Gavin Stokes <email@hidden>)

  • Prev by Date: Xcode 4.3, XIB files and deployment target iOS 3.1
  • Next by Date: Re: Getting NSApplicationDelegate protocol
  • Previous by thread: wacky image stretching on rotation (repost)
  • Next by thread: Re: wacky image stretching on rotation (repost)
  • Index(es):
    • Date
    • Thread