UINavigationController-Stil
Hatte ich im code UINavigationController, aber ich wollen, um Stil zu ändern, um schwarz transluzent
FirstViewController *fvc = [[FirstViewControlelr alloc] init];
UINavigationController *navcon = [[UINavigationController alloc] init];
navcon.navigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent;
[navcon pushViewController:fvc animated:NO];
[self.window addSubview:navcon.view];
[self.window makeKeyAndVisible];
return YES;
Aber er ändert sich nicht. Helfen Sie mir bitte!
InformationsquelleAutor Tunyk Pavel | 2011-03-21
Schreibe einen Kommentar Antworten abbrechen
Du musst angemeldet sein, um einen Kommentar abzugeben.
Ich vermute, es hat etwas mit der Tatsache zu tun, dass Sie Zugriff auf einen navigation-controller, der navigation-controller. Ihre navigation-controller nicht in einem anderen Leben navigation-controller, also bist du die Messlatte Stil von etwas, das nicht da ist.
Du willst:
Außerdem können Sie einen navigation-controller und sofort initialisieren Sie es mit einem root-view-controller, so dass Sie nicht haben, um schieben Sie es manuell, so wie hier:
Und ja, du hast vergessen zu release
fvc
in Ihrem eigenen code.InformationsquelleAutor BoltClock