How to draw in UIViewController in landscape orientation on the iPhone?

I found a solution somewhere else. The idea is to use the CGAffineTransform method. It allows you to transform the complete coordinate system of a uiview.

The piece of code underneath rotatets it to landscape. Now when you draw, the drawing relates to the rotated coordinate systems and everything is drawn in landscape orientation.

I found a solution somewhere else. The idea is to use the CGAffineTransform method. It allows you to transform the complete coordinate system of a uiview.

The piece of code underneath rotatets it to landscape. Now when you draw, the drawing relates to the rotated coordinate systems and everything is drawn in landscape orientation. CGAffineTransform transform=CGAffineTransformIdentity; transform=CGAffineTransformRotate(transform, (90.0f*22.0f)/(180.0f*7.0f)); transform=CGAffineTransformTranslate(transform, 80, 80); This does what I want.

But anyway, if there are any other suggestions, please post them!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions