またまた天気サービスへアクセスするライブラリ
サポートしている WEBサービス
Weather Underground
Open Weather Map
使い方はこんな感じ。
CZWeatherRequest *request = [CZWeatherRequest requestWithType:CZCurrentConditionsRequestType];
request.location[CZWeatherKitLocationName.StateCityName] = @"TX/Austin";
request.service = [CZWundergroundService serviceWithKey:];
[request performRequestWithHandler:^(id data, NSError *error) {
if (data) {
CZWeatherCondition *current = (CZWeatherCondition *)data;
// Do whatever you like with the data here
}
}]; 現在の天気のほか、明日の予報、10日予報などが取得できる。
BSDライセンス
関連)


