【发布时间】:2019-01-16 03:34:57
【问题描述】:
我有 [mkmapview annotations] 这是 MKPointAnnotation 的数组
我正在尝试将 ti 作为数组保存到 FireStore,但不接受 MKPointAnnotation 对象
然后我尝试将 MKPointAnnotation 转换为 FIRGeoPoint 但没有运气
for (MKPointAnnotation *point in annotationsArray) {
FIRGeoPoint *FirAnnotations;
FirAnnotations = [FirAnnotations initWithLatitude:point.coordinate.latitude longitude:point.coordinate.longitude];
NSLog(@"FirAnnotations: %@",FirAnnotations);
}
annotationsArray 是 [mkmapview 注释]
总是为空
【问题讨论】:
标签: objective-c firebase google-cloud-firestore geopoints mkpointannotation