问题描述
我从MKLocalSearchCompleter到其委托接收MKLocalSearchCompletion项目.每个MKLocalSearchCompletion都包含一个标题和一个字幕,该字幕是一个地址.我需要从地址中提取一个城市和一个国家.请帮忙!
I receive MKLocalSearchCompletion items from MKLocalSearchCompleter to its delegate. Every MKLocalSearchCompletion contains a title and a subtitle, the subtitle is an address. I need to extract a city and a country from the address. Please help!
推荐答案
MKLocalSearchCompletion不包含地址".它包含标题和副标题.要获取更多信息,请使用MKLocalSearchCompletion形成MKLocalSearchRequest并执行MKLocalSearch.
MKLocalSearchCompletion does not "contain an address". It contains a title and subtitle. To get more information, use the MKLocalSearchCompletion to form an MKLocalSearchRequest and perform the MKLocalSearch.
这篇关于如何从MKLocalSearchCompletion中提取国家和城市?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!