我从解析中删除了一组GeoPoints并显示在地图视图中。我希望注释在它们出现的那天显示。我有一个名为Date in Parse的专栏,但无法找出正确的格式或其他东西,因为我无法弄明白。
这是我目前的代码。有什么建议吗?
PFGeoPoint *point = [PFGeoPoint geoPointWithLatitude:currentLocation.coordinate.latitude longitude:currentLocation.coordinate.longitude];
NSDate *today = [NSDate date];
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
[dateFormat setDateFormat:@"dd/mm/yyyy"];
NSString *dateString = [dateFormat stringFromDate:today];
NSLog(@"date: %@", dateString);
[query whereKey:@"location" nearGeoPoint:point withinMiles:50.0];
[query includeKey:kPAWParseUserKey];
[query whereKey:@"date" equalTo:today];
[query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {
.....
}];