在我的应用程序中,我提出了一个modalviewcontroller如下,我无法更改导航栏的标题或任何它的属性。导航栏标题没有设置iphone
fullListTopCompanies *fullListTopCompaniesInstance = [[fullListTopCompanies alloc] initWithNibName:@"fullListTopCompanies" bundle:nil];
UINavigationController *cntrol = [[UINavigationController alloc] initWithRootViewController:fullListTopCompaniesInstance];
[fullListTopCompaniesInstance setTitle:@"TEST"];
UIBarButtonItem *submit = [[UIBarButtonItem alloc]
initWithBarButtonSystemItem:UIBarButtonSystemItemDone
target:self
action:@selector(displayViewForPosts)];
fullListTopCompaniesInstance.navigationItem.rightBarButtonItem = submit;
[submit release];
[self presentModalViewController:cntrol animated:YES];
[cntrol release];
我尝试实例化应用程序委托并将其navigationcontroller分配给本地navigationcontroller实例,但没有用。
不知何故导航控制器无法访问。它不能通过使用“self.navigationitem”访问。每当我使用导航控制器显示modalviewcontroller时,此导航会在实际的导航控制器下方显示。
任何人都可以请帮忙吗?
Thanx提前。