LocationViewer 0.1.6

LocationViewer 0.1.6

Robyarta 维护。




  • 作者:
  • Robyarta@iCloud 和 Robyarta@Gmail

LocationViewer

CI Status Version License Platform

示例

要运行示例项目,请克隆仓库,然后首先从 Example 目录运行 pod install

屏幕截图

alt text

安装

LocationViewer 通过 CocoaPods 提供。要安装它,只需将以下行添加到 Podfile:

pod 'LocationViewer'

如何使用

import LocationViewer
let location = CLLocation(latitude: -6.2303447, longitude: 106.8240961)
let locationController = LocationViewerController(location: location, forName: "My Location")
locationController.titleColor = UIColor.red
locationController.subtitleColor = UIColor.green
locationController.leftCallOutAction = { print("left callout") }
locationController.shareAction = { location in print(location) }
locationController.backButton = UIBarButtonItem(title: "Back", style: .plain, target: self, action: #selector(back(_:)))
navigationController?.pushViewController(locationController, animated: true)

作者

[电子邮件地址保护 - 请显示代码 711a0416141d17101f165f1a181d1d1003041f1031161c10181d5f121e1c][电子邮件地址保护 - 请显示代码 3c4e535e4655514c49504f597c555f50534958125f5351]

许可证

LocationViewer 采用 MIT 许可证。有关更多信息,请参阅 LICENSE 文件。