- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
KDHtmlViewController *html = [[KDHtmlViewController alloc]init];
KDNavigationController *nav = [[KDNavigationController alloc]initWithRootViewController:html];
[self presentViewController:nav animated:YES completion:nil];
}
子控制左上角"关闭"按钮
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
//设置左上角的『关闭』按钮
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"关闭" style:UIBarButtonItemStylePlain target:self action:@selector(colse)];
}
- (void)close{
[self dismissViewControllerAnimated:YES completion:nil];
}