首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

在XIB里设立 navigation bar 在模拟器里确没有显示

2012-07-03 
在XIB里设置 navigation bar 在模拟器里确没有显示MainViewController *mainViewController [[[MainView

在XIB里设置 navigation bar 在模拟器里确没有显示
MainViewController *mainViewController = [[[MainViewController alloc] init] autorelease];
    UINavigationController *navController = [[[UINavigationController alloc] initWithRootViewController:mainViewController] autorelease];
   
    [self.window addSubview:navController.view];


是因为没有加UINavigationController

热点排行