Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 Core Location 的新手,我想知道当我们将照片分享到 Facebook 时如何在 iPhoto 中获取位置列表。
例如 :
用户输入“纽约”,然后点击“搜索”
表格视图将显示具有该名称的位置列表。它还将显示地理标记信息。
谢谢!
事实证明,Facebook 没有“位置”,它有的是“地点”,一种“签到”。但是,我们无法以编程方式创建 Place 对象,我们只能根据纬度和经度查找地点。
幸运的是,Apple 已经提供了 CLGeocoder 来查找位置及其纬度和经度,由此我可以提供 Facebook 的 Place 的经度和经度。