Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 09-23-2008, 05:04 PM   #5 (permalink)
skinnytron
New Member
 
Join Date: Jul 2008
Posts: 69
skinnytron is on a distinguished road
Default

I looked for a similar solution but couldn't find one. What I did was wrap my UIImageView in an empty UIView (ie no background or anything so that when you load the application its not visible) Then just make the UIView larger than the UIImageView and rotate the UIView.

Example: If you have a square that is 20,20 and you want to rotate at a point that was -10,-10 (ie diagonal to the top left corner). You would then make your UIView 60,60 and place the UIImageView at 40,40. If you then rotated the UIView it would appear that you were rotating it about that -10,-10 location when you would actually be rotating it about the center of the UIView (which is 30, 30).

Make sense?
skinnytron is offline   Reply With Quote
 

» Advertisements
» Online Users: 360
13 members and 347 guests
Anonymous Username, Art, bebshol53, benney_swet, eski, Farfalo, hacker073, Kirkout, Kryckter, nmi300, Objective Zero, Oral B, spiderguy84
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,561
Threads: 94,079
Posts: 402,746
Top Poster: BrianSlick (7,990)
Welcome to our newest member, benney_swet
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:06 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.