Hi all,
In my application, I'm launching a modalViewController on rightbarbutton click of navigationbar. This modalViewController overlaps the navigationbar. I tried setting its frame but it remained the same. I want to display navigationbar even if modalViewController is still there.
EDIT: I call the following method on navigationcontroller's rightbarbutton press. The view appears properly but the position is not right.
-(void)showViewForPosts{
self.navigationItem.backBarButtonItem =
[[UIBarButtonItem alloc] initWithTitle:@"DISMISS"
style: UIBarButtonItemStyleBordered
target:self
action:@selector(dismissViewCOntroller)];
displayController = [[UIViewController alloc]initWithNibName:nil bundle:nil];
displayController.view.frame = CGRectMake(0.0, 150.0, 320, 436);
displayController.view.backgroundColor = [UIColor blueColor];
//I'M ADDING DIFFERENT VIEWS HERE
[self presentModalViewController:displayController animated:YES];
}
Thanx in advance.