如何在iphone中更改标题的字体大小?

Dev*_*ngh 2 iphone objective-c ios xcode4

这是代码,这将显示默认大小,我想改变标题becoz的字体大小这个标题是太大n没有显示整个只有"库克大印度......"显示... pl让我帮忙

- (void)viewDidLoad {

    self.title = @"Cook Great Indian Recipes";
}
Run Code Online (Sandbox Code Playgroud)

kvi*_*ver 12

尝试为标题标签设置自定义标签:

    self.title = @"Cook Great Indian Recipes";
    CGRect frame = CGRectMake(0, 0, [self.title sizeWithFont:[UIFont boldSystemFontOfSize:20.0]].width, 44);
    UILabel *label = [[UILabel alloc] initWithFrame:frame];
    label.backgroundColor = [UIColor clearColor];
    label.font = [UIFont boldSystemFontOfSize:17.0];
    label.textAlignment = UITextAlignmentCenter;
    self.navigationItem.titleView = label;
    label.text = self.title;
    [label release];
Run Code Online (Sandbox Code Playgroud)