xcode 7でJSONを介してデータを取得しようとすると、エラーが発生します:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'data parameter is nil'
xcode 6では正常に動作しています。json からデータをフェッチするために、xcode 7 に新しいメソッドが実装されました。
[NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://api.openweathermap.org/data/2.5/weather?lat=35&lon=139"]];
id response=[NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingAllowFragments error:nil];