【问题标题】:How to align title of google map marker to right for RTL in ios?如何在 ios 中将谷歌地图标记的标题与 RTL 对齐?
【发布时间】:2015-10-10 06:11:12
【问题描述】:

我正在使用下面的代码在谷歌地图的标记中设置标题。

  CLLocationCoordinate2D position = CLLocationCoordinate2DMake(lat, longi);
    GMSMarker *marker = [GMSMarker markerWithPosition:position];
    marker.title = self.TitleArray[i];
    marker.map = mapView_;
}

谁能告诉我如何将标题右对齐?

【问题讨论】:

    标签: ios8 nsstring google-maps-sdk-ios


    【解决方案1】:

    你可以使用

       marker.title.textAlignment = UITextAlignmentRight;
    

    【讨论】:

      猜你喜欢
      • 2012-08-19
      • 2020-08-13
      • 1970-01-01
      • 1970-01-01
      • 2023-03-20
      • 2023-03-19
      • 2016-06-22
      • 2017-06-23
      相关资源
      最近更新 更多