I have UiNavigationController in my app. I want that only one screen will be able to rotate so i put in this class :
-(BOOL)shouldAutorotateToInterfaceOrient
-(NSUInteger)supportedInterfaceOrientations { return self.topViewController.supportedInterfaceOrientations; }