I want to call this method in a user defined function
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
Is it possible ?? if yes,How ?? Pl. guide me.
I want to call this method in a user defined function
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
Is it possible ?? if yes,How ?? Pl. guide me.
This method should be implemented for a custom UIViewController, for instance
@interface MyViewController : UIViewController {
...
}
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)io;
@end
@implementation MyViewController
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)io {
return io != UIInterfaceOrientationPortraitUpsideDown;
}
@end