文件名称:OpenWeather:用于 OpenWeatherMap API 的 Swift 库
文件大小:12KB
文件格式:ZIP
更新时间:2024-06-29 16:36:19
Swift
用于#OpenWeather Swift 库。 ##用法示例###初始化 let ow = OpenWeather () // Search by city name ow. weather ( city : " Rome, Italy " , completion : { ( data : AnyObject ? , error : NSError ? ) -> Void in if error != nil { println ( " Error \( error ! . message ) " ) return } let weatherData = data as NSDictionary ! let temp = weatherData[ " main " ][ " temp " ] println ( " Temperature in Rome: \(
【文件预览】:
OpenWeather-master
----.gitignore(228B)
----OpenWeather.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(25KB)
----LICENSE(1KB)
----OpenWeather()
--------OpenWeather.h(465B)
--------Info.plist(819B)
--------OpenWeather.swift(6KB)
----.gitmodules(173B)
----README.md(1KB)
----ExSwift()
----Alamofire()
----OpenWeatherTests()
--------OpenWeatherTests.swift(4KB)
--------Info.plist(746B)