titleview フレームは自動的に調整されます。この結果を取得したい場合は、次を試してください。
UILabel *titleLabel = [[UILabel alloc] initWithFrame:self.navigationController.navigationBar.frame];
[titleLabel setTextAlignment:UITextAlignmentRight];
[titleLabel setText:@"Your title"];
[titleLabel setBackgroundColor:[UIColor clearColor]];
[titleLabel setTextColor:[UIColor whiteColor]];
self.navigationItem.titleView = titleLabel;
注:ビューコントローラーのself.titleを設定しないでください。そうしないと、titleViewが上書きされます
別の解決策は、titleLabel を UIBarButtonItem (customView) に配置し、self.navigationItem.rightBarButtonItem のように設定することです。この方法では、テキストの配置とラベルのフレームを適切なテキスト サイズにする必要はありません。