On the callout bubble on the iPhone SDK\'s map, can the font be changed for the title and subtitle properties.
I am displeased with the default font shown in the callout
You will need to use MKAnnotationView
, or subclass it, to change the appearance of the title and subtitle labels as you suggest. If you want to create more re-usable code, I'd subclass and add say properties to query and set the UIFont
values to your UILabel
instances.
Subclass the MKAnnotationView then put the category below on top of its implementation:
@implementation UIFont (SytemFontOverride)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wobjc-protocol-method-implementation"
+ (UIFont *)boldSystemFontOfSize:(CGFloat)fontSize {
return [UIFont fontWithName:@"Your-Font-Here" size:fontSize];
}
+ (UIFont *)systemFontOfSize:(CGFloat)fontSize {
return [UIFont fontWithName:@"Your-Font-Here" size:fontSize];
}
#pragma clang diagnostic pop
@end