ボタンをナビゲーションバーのタイトルとして表示するこのコードがあり、ボタンコードで、ボタンを外したテキストラベルのフォントを変更するコードを記述していますが、以下のコードでは正しいフォントバージョンを取得できませんでした。
UIButton *titleButton = [[UIButton alloc]init];
titleButton = [UIButton buttonWithType:UIButtonTypeCustom];
[titleButton setFrame:CGRectMake(0, 0, 170, 35)];
[titleButton setTitle:[NSString stringWithFormat:@"%@ %@",delegatee.selectedBook,delegatee.selectedChapter]forState:UIControlStateNormal];
titleButton.titleLabel.font =[UIFont fontWithName:@"Georgia" size:10.0f];
[titleButton addTarget:self action:@selector(ClickbtnChaperselection:)forControlEvents:UIControlEventTouchUpInside];
self.navigationItem.titleView = titleButton;
iput georgiaですが、正しいフォントを取得できませんでした。ありがとうございます。