从rootViewController中,我用两个按钮刷出一个320x50大小的UIView。
点击UIView中的按钮,如何弹出UIViewController?
感谢。
答案 0 :(得分:0)
//创建导航控制器
UINavigationController *navController = [[UINavigationController alloc]
initWithRootViewController:viewController];
// show the navigation controller modally
[youCurrentNavigationController presentModalViewController:navController animated:YES];