What's new
Apple iPad Forum 🍎

Welcome to the Apple iPad Forum, your one stop source for all things iPad. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Rotate iPad Application

rtr_18

iPF Noob
Joined
Aug 14, 2012
Messages
1
Reaction score
0
Location
Chennai
Hi!
I want my app to rotate, when the iPad is flipped. For this I've overridden the following method:

Code:
- ([COLOR=#b933a1]BOOL[/COLOR]) shouldAutorotateToInterfaceOrientation:([COLOR=#7041a7]UIInterfaceOrientation[/COLOR])toInterfaceOrientation
{
[COLOR=#3d227f][COLOR=#b933a1]self[/COLOR][COLOR=#000000].[/COLOR][COLOR=#7041a7]tableView[/COLOR][COLOR=#000000].[/COLOR][COLOR=#7041a7]autoresizingMask[/COLOR][COLOR=#000000] = [/COLOR]UIViewAutoresizingFlexibleWidth[COLOR=#000000] | [/COLOR]UIViewAutoresizingFlexibleHeight[COLOR=#000000];[/COLOR][/COLOR]
[COLOR=#b933a1]returnYES[COLOR=#000000];[/COLOR][/COLOR]
}

My view controller class is derived from UITableViewController. I've added the first line in the above method
according to some site over the net. But it's not working. What to do to rotate an app when the iPad is flipped?
Sorry if it's too simple thing. I'm very much new to iOS development.
 

Most reactions

Latest posts

Top