Orientation methods are not getting called in the latest version of xcode 4.5
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
self.sampleController =[[SampleViewController alloc]init];
UINavigationController * nvC =[[UINavigationController alloc]initWithRootViewController:self.sampleController];
self.window.rootViewController =nvC;
[self.window makeKeyAndVisible];
return YES;
}
(BOOL)shouldAutorotate{
return YES;
}
(NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskAll;
}
when i take UIViewController object as windows rootviewcontroller,Its getting called properly.But,when i take UINavigationController object as windows rootviewcontroller,Its not getting called.
Would any one please help me on this.