【发布时间】:2016-05-17 00:21:19
【问题描述】:
如何更改 MKAnnotation 标题和副标题这是我的代码
Newclass *ann1 = [[Newclass alloc] init];
ann1.title = namef1;
ann1.subtitle = @"";
ann1.coordinate = place1.center;
[mapView addAnnotation: ann1];
我搜索使用
UIFont *size = [UIFont systemFontOfSize:17];
CGSize textsize = [ann1.title sizeWithAttributes:@{NSFontAttributeName:size}];
但构建此代码显示未使用的变量 textsize
【问题讨论】:
-
没有用于更改注释标注的标题/副标题字体的内置规定。
标签: ios objective-c mkannotation