我有mkmapview注释,它是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注释。
总是获得空
发布于 2019-01-16 21:27:02
我试图使用FirAnnotations指针来调用init,但是它是零,我应该在那里使用FIRGeoPoint。
for (MKPointAnnotation *point in annotationsArray) {
FIRGeoPoint *FirAnnotations;
FirAnnotations = [[FIRGeoPoint alloc] initWithLatitude:point.coordinate.latitude longitude:point.coordinate.longitude];
NSLog(@"annotations: %@",annotations);
}https://stackoverflow.com/questions/54210046
复制相似问题