【问题标题】:How to get Map Annotation title style/font in label如何在标签中获取地图注释标题样式/字体
【发布时间】:2013-01-30 04:46:15
【问题描述】:

谁能告诉我如何在 UIlabel 中获取地图注释标题的字体/样式

我想要标签中的确切样式/字体..

        UILabel *name = [[UILabel alloc]init];
        name.text = @"Hello Annotation";
        name.textColor = [UIColor whiteColor];
       [name setFont: [UIFont fontWithName:@"Helvetica" size:20.0]];

我还需要包括什么才能获得注释标题的确切样式?

【问题讨论】:

    标签: iphone ios xcode map


    【解决方案1】:

    试试

     [name setFont: [UIFont boldSystemFontOfSize:20.0]];
    

    还可以使用阴影设置。

    [name setShadowColor:[UIColor blackColor]];
    [name setShadowOffset:CGSizeMake(0, -1)];
    

    【讨论】:

      猜你喜欢
      • 2019-11-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-10
      • 2014-06-20
      • 1970-01-01
      • 2012-11-07
      • 1970-01-01
      相关资源
      最近更新 更多