Ios8 如何在ios中为RTL将google地图标记的标题向右对齐?

Ios8 如何在ios中为RTL将google地图标记的标题向右对齐?,ios8,nsstring,google-maps-sdk-ios,Ios8,Nsstring,Google Maps Sdk Ios,我正在使用下面的代码为谷歌地图设置标记中的标题 CLLocationCoordinate2D position = CLLocationCoordinate2DMake(lat, longi); GMSMarker *marker = [GMSMarker markerWithPosition:position]; marker.title = self.TitleArray[i]; marker.map = mapView_; } 有人能告诉我如何将标题向右对齐吗

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

  CLLocationCoordinate2D position = CLLocationCoordinate2DMake(lat, longi);
    GMSMarker *marker = [GMSMarker markerWithPosition:position];
    marker.title = self.TitleArray[i];
    marker.map = mapView_;
}
有人能告诉我如何将标题向右对齐吗?

您可以使用

   marker.title.textAlignment = UITextAlignmentRight;