如果我在iPad上有300/200的横向视图,我想仅使用小视图导航,这可能吗?如果是,一个例子将非常有用
答案 0 :(得分:1)
这个怎么样:
MainController *controller = [[MainController alloc] init];
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:controller];
[controller release];
[self.navigationController presentModalViewController:navController animated:YES];
navController.view.superview.frame = CGRectMake(0, 0, 300, 300);
[navController release];
希望这会对你有所帮助