#import "CustomNavigationController.h"
@interface Customnavigationcontroller ()
@end
@implementation Customnavigationcontroller
-(ID) Initwithnibname: (NSString *) Nibnameornil Bundle: (NSBundle *) Nibbundleornil
{
self = [super Initwithnibname:nibnameornil Bundle:nibbundleornil];
if (self) {
}
return self;
}
-(void) viewdidload
{
[Super Viewdidload];
Do any additional setup after loading the view.
}
-(void) didreceivememorywarning
{
[Super didreceivememorywarning];
Dispose of any resources the can be recreated.
}
-(BOOL) shouldautorotate
{
return NO;
}
-(Nsuinteger) supportedinterfaceorientations{
return uiinterfaceorientationmasklandscaperight;
return self.orietation;
}
-(BOOL) Shouldautorotatetointerfaceorientation: (uiinterfaceorientation) interfaceorientation
{
Return (interfaceorientation! = self.orietation);
}
About forcing vertical screen to change horizontal screen