First we have to set supported orientations in Targets->Summary...
In iOS6.0 shouldAutorotateToInterfaceOrientation Method is deprecated.So,instead of this method we have to use shouldAutorotate Method..
And with the method supportedInterfaceOrientations we have to set which orientations we want like UIInterfaceOrientationMaskAll if we want all orientations
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…