を使用し、self.navigationItem.titleView2 つの UIButton を に設定self.navigationItem.rightBarButtonItemsしますUINavigationBar。私は私のナビゲーションバーでこれを達成しました
ビューコントローラーの横向きを回転させてから元に戻すたびに、uibarbutton アイテムが次のように切り取られます

を設定するために使用するコードtitleViewは次のとおりです。
UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 0, 44)];
titleLabel.backgroundColor = [UIColor clearColor];
titleLabel.numberOfLines = 2;
titleLabel.font = [UIFont boldSystemFontOfSize:13.0f];
titleLabel.shadowColor = [UIColor colorWithWhite:0.0 alpha:0.5];
titleLabel.textAlignment = UITextAlignmentCenter;
titleLabel.textColor = [UIColor whiteColor];
titleLabel.text = self.tabTitle;
self.navigationItem.titleView = titleLabel;
なぜこれが起こっているのかわかりません。これを修正する方法を知っている人がいるかどうか疑問に思います。