0

I'm trying to add a UIView to each side of a cube like the one in this pic:

http://upload.wikimedia.org/wikipedia/commons/0/02/Face_colored_cube.png

Since UIViews are rectangular shaped it's difficult to achieve what I'm trying. All I do by now is to rotate views but it isn't enough.

What's the correct way to achieve that? Any ideas? Thanks in advance.

Samui
  • 1,384
  • 3
  • 14
  • 28

1 Answers1

1

You need to do a perspective view transformation.

Have a look at this tutorial

You can also look at this answer by Brad Larson

Community
  • 1
  • 1
Lefteris
  • 14,550
  • 2
  • 56
  • 95