J'ai simple UIViewController où dans le viewDidLoad je:Est correct comment je fais pivoter mon UINavigationBar?
_navigationBar = [[UINavigationBar alloc] initWithFrame:CGRectMake(0, 0, 320, 44)];
[self.view addSubview:_navigationBar];
_toolbar = [[UIToolbar alloc] initWithFrame:CGRectMake(0, 416, 320, 44)];
[self.view addSubview:_toolbar];
Dans le didRotateFromInterfaceOrientation je mets:
_navigationBar.frame = CGRectMake(0, 0, self.view.bounds.size.width, 44);
Et ça marche, mais je n'aime pas beaucoup l'effet qu'il a fait . Des idées? Merci
Merci, ça marche parfaitement! – Alleria