听起来你只需要一个 UINavigationController 设置?
您可以通过程序中的任何位置获取 AppDelegate
YourAppDelegateName* blah = (YourAppDelegateName*)[[UIApplication sharedApplication]delegate];
在您的app委托中,您应该通过IB或代码设置导航控制器 .
在代码中,假设你已经've created your ' House概述'viewcontroller已经在你的 AppDelegate didFinishLaunchingWithOptions 中会出现这样的情况......
self.m_window = [[[UIWindow alloc]initWithFrame:[[UIScreen mainScreen]bounds] autorelease];
self.m_navigationController = [[[UINavigationController alloc]initWithRootViewController:homeViewController]autorelease];
[m_window addSubview:self.m_navigationController.view];
在此之后,您只需要每个'房间'一个viewcontroller,并在拾取按钮点击事件时调用以下内容...
YourAppDelegateName* blah = (YourAppDelegateName*)[[UIApplication sharedApplication]delegate];
[blah.m_navigationController pushViewController:newRoomViewController animated:YES];
我没有测试上面的代码,所以原谅任何语法错误,但希望伪代码有帮助......