When i call this method, the navigationbar is shown and its not placed correctly. Exactly navigation bar placed from 20pixels from top of simulator. How to solve this. I call this method before subclass. but next page navigation bar not placed correctly.
UtilityController *object=[[UtilityController alloc]initWithNibName:@"UtilityController" bundle:nil];
navigationController=[[UINavigationController alloc] initWithRootViewController:object];
[self.view addSubview:navigationController.view];
[object release];
How to solve this method. Thanks in advance.
You should set appropriate value of
frameproperty of yournavigationController, for exmaple:Also the best practice is to set
UINavigationControlleras modal view:New example