0

我知道如何搜索本地机构,但我很好奇是否可以显示超过 10 个搜索结果?

这是我执行搜索的代码。

    let request = MKLocalSearchRequest()
    request.naturalLanguageQuery = "Bars"
    request.region = MKCoordinateRegionMakeWithDistance((currentLocation?.coordinate)!, 400, 400)

    let search = MKLocalSearch(request: request)
    search.start(completionHandler: {(response, error) in
        if(error != nil){
            print("Error occured in search \(error?.localizedDescription)")
        }
        else if(response!.mapItems.count == 0){
            print("No matches found")
        }
        else{
            for item in response!.mapItems{
4

0 回答 0