I created UIViewController using storyboard and Linked it to UIViewController class.
I would like to make my UIViewController only support Portrait Orientation, I tried the blow code, but it seems it doesn't work. my UIViewController still rotate.
Do I need to change any property in storyboard?
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return ((interfaceOrientation == UIInterfaceOrientationPortrait) || (interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown));
}