Posted By

bethjt1220 on 04/29/11


Tagged

ios


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

craig


Landscape Orientation Transform


 / Published in: iPhone
 

In viewDidLoad

  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  

You need to login to post a comment.