NavigationController.h
申明NavigationController
@property (nonatomic,strong)UINavigationController *navgationController;
.m
初始化TableView
tableViewController *tableVC = [tableViewController alloc]init];
初始化navigation
self.navigationontroller = [UINavigationController alloc]initwithRootViewControll
写入View
self.view addSuview:self.navigationController.view];