 |
 |
|
 |
04-23-2009, 09:02 PM
|
#1 (permalink)
|
|
New Member
Join Date: Mar 2009
Posts: 45
|
Rotating UIImageViews
I am trying to rotate four UIImageViews around a single point (like a windmill). This has proved to be very difficult. I not only want the UIImageViews to move around in a circle (which I know how to do), but I want the UIImageView itself to rotate.
Ex:
UIImageView horizontal.
|---------
UIImageView Vertical
---
|
|
|
Is there a function for this? If not, how can this be achieved?
|
|
|
04-23-2009, 10:20 PM
|
#2 (permalink)
|
|
Registered Member
Join Date: Mar 2009
Posts: 175
|
i dont think there is a function for this, but there will be a way to implement it (in fact, there are probably plenty of way to do it...)
if it would me, i would do it like this...
create a point for each view that defines the center of each view...
each time an individual view need to move around the point, recalculate the the centre point
as you recalculate each point to make the view move in a circular motion, you will also rotate the individual view. if they have one after the other quickly, it will appear to happen simultaneously...
does that make sense?
|
|
|
04-24-2009, 12:52 AM
|
#3 (permalink)
|
|
Registered Member
Join Date: Mar 2009
Posts: 175
|
you know, i was just thinking that you dont have to go to all the trouble i proposed above...
have one big view that rotates. the other views are smaller sub views... with will rotate as the main view rotates... then just rotate the sub views within the main view...
that makes sense to be because i know what i am trying to say... i fear you may have no idea of what i am trying to say... this is why i can never be a teacher...
|
|
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Advertisements |
» Online Users: 508 |
| 33 members and 475 guests |
| 3DTOPO, acegames, ArgMan, arun, chaoz1337, demisecte, Dmitry, finefin, georgeburns, Johanovski, JohnnyC, KarlG, laurelbigler58, lolo77, mattjgalloway, MikaelBartlett, mixer555, neil_l, Nicolas R, peter_chen, Pilly170, ronm3xico, runimal, salva, SalvoMaltese, scalar, siptash, siwatson, skunk, Suicid, Tambourin, Zoid |
| Most users ever online was 779, 05-11-2009 at 09:55 AM. |
» Stats |
Members: 23,855
Threads: 38,627
Posts: 169,578
Top Poster: smasher (2,547)
|
| Welcome to our newest member, laurelbigler58 |
|