29,030
社区成员
发帖
与我相关
我的任务
分享
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.backgroundColor = [UIColor whiteColor];
//PHMessagingSplitViewController is a subclass of UISplitViewController
PHMessagingSplitViewController *tmpVC = [[PHMessagingSplitViewController alloc] init];
self.window.rootViewController =tempVC;
[self.window makeKeyAndVisible];
return YES;
}
[/quote]
谢谢你的回复。不过我需要在最顶部显示NavigationBar。所以必须要用UINavigationController.[/quote]
UISplitViewController 应该也是一个容器controller,左边的是Master, 右边的是Deitail. 指定Master和Detail 对应的控制器均为UINavigationController 不就可以了吗 ?[/quote]
最顶部显示,在Master Detail里面我不需要显示各自NavigationBar的。- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.backgroundColor = [UIColor whiteColor];
//PHMessagingSplitViewController is a subclass of UISplitViewController
PHMessagingSplitViewController *tmpVC = [[PHMessagingSplitViewController alloc] init];
self.window.rootViewController =tempVC;
[self.window makeKeyAndVisible];
return YES;
}
[/quote]
谢谢你的回复。不过我需要在最顶部显示NavigationBar。所以必须要用UINavigationController.- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.backgroundColor = [UIColor whiteColor];
//PHMessagingSplitViewController is a subclass of UISplitViewController
PHMessagingSplitViewController *tmpVC = [[PHMessagingSplitViewController alloc] init];
self.window.rootViewController =tempVC;
[self.window makeKeyAndVisible];
return YES;
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.backgroundColor = [UIColor whiteColor];
//PHMessagingSplitViewController is a subclass of UISplitViewController
PHMessagingSplitViewController *tmpVC = [[PHMessagingSplitViewController alloc] init];
self.window.rootViewController =tempVC;
[self.window makeKeyAndVisible];
return YES;
}
[/quote]
谢谢你的回复。不过我需要在最顶部显示NavigationBar。所以必须要用UINavigationController.[/quote]
UISplitViewController 应该也是一个容器controller,左边的是Master, 右边的是Deitail. 指定Master和Detail 对应的控制器均为UINavigationController 不就可以了吗 ?