Thursday, August 05, 2010

Programming IPhone to support rotation auto orientation change

Everytime when IPhone is rotated the shouldAutorotateToInterfaceOrientation method is called.
To support this, just return YES.

       - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {

                  // Return YES for supported orientations
                 return YES;


  1. Hey, nice site you have here! Keep up the excellent work!

    Journal support

  2. Nice and very helpful information i have got from your post. Even your whole blog is full of interesting information which is the great sign of a great blogger.

    Lenovo - IdeaPad 15.6" Laptop - 6GB Memory - 1TB Hard Drive - Dark Chocolate

    Lenovo - 14" Notebook - 4 GB Memory - 320 GB Hard Drive - Black