view1 = [[View1 alloc] init]; //Create the first view
UINavigationController *navigationController1 = [[UINavigationController alloc] initWithRootViewController:view1];
navigationController1.navigationBar.tintColor =[UIColor blackColor];
View1 hérite de UIViewController. Donc, je crée un * view1, puis je crée un UINavigationController, appelez * navigationController1. Comment puis-je lier les deux ensemble? Merci beaucoupComment ajouter un UINavigationController à une vue dans le code?
Vous pouvez initialiser avec la vue racine: UINavigationController * Navigation = [[UINavigationController alloc] initWithRootViewController: yourViewController]; –