Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/111.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 如何获得具有多个约束的PFU用户_Ios_Objective C_Parse Platform_Geolocation_Pfuser - Fatal编程技术网

Ios 如何获得具有多个约束的PFU用户

Ios 如何获得具有多个约束的PFU用户,ios,objective-c,parse-platform,geolocation,pfuser,Ios,Objective C,Parse Platform,Geolocation,Pfuser,我想查询一个PFUser类,其中有一列showmeonmap,用户可以选择,如果他想让其他人在地图上看到他,还有另一列有地质点,我想得到所有想要显示自己的用户,并且在当前用户半径为50公里的范围内,还有其他用户可以这样做吗 [query whereKey:@"showmeonmap" equalTo:[NSNumber numberWithBool:true]; [query whereKey:@"myLocation" nearGeoPoint:currentUserGeoPoint with

我想查询一个PFUser类,其中有一列showmeonmap,用户可以选择,如果他想让其他人在地图上看到他,还有另一列有地质点,我想得到所有想要显示自己的用户,并且在当前用户半径为50公里的范围内,还有其他用户可以这样做吗

[query whereKey:@"showmeonmap" equalTo:[NSNumber numberWithBool:true];
[query whereKey:@"myLocation" nearGeoPoint:currentUserGeoPoint withinKilometers:50.0];
阅读文档:

您必须创建一个与当前位置相等的PFGeoPoint