How can I change the size of the font 开发者_StackOverflow中文版in a UIBarButtonItem?
You can easily achieve this using the following code:
barButtonName.title = @"SOME TEXT TO DISPLAY";
[barButtonName setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIFont boldSystemFontOfSize:15<=SIZE YOU WANT], UITextAttributeFont,nil] forState:UIControlStateNormal];
精彩评论