Whenever I am trying to fetch data through JSon in xcode 7 it is giving me error :
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'data parameter is nil'
In xcode 6 it is working fine. Is new method has been implemented in xcode 7 to fetch data from json .
[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];
try this its working