Landscape Orientation Transform


/ Published in: iPhone
Save to your folder(s)

In viewDidLoad


Copy this code and paste it in your HTML
  1. // make view appear in landscape orientation
  2. self.view.transform = CGAffineTransformIdentity;
  3. self.view.transform = CGAffineTransformMakeRotation((M_PI * (90) / 180.0));
  4. self.view.bounds = CGRectMake(0.0, 20.0, 1024, 748);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.