我收到一个奇怪的编译器警告。它说:
Incompatible pointer to integer conversion sending 'void *' to parameter of type
'NSJSONReadingOptions' (aka 'enum NSJSONReadingOptions')
这是它所在的块:
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
//Incompatible pointer to integer conversion sending 'void *' to parameter of type
'NSJSONReadingOptions' (aka 'enum NSJSONReadingOptions')
news = [NSJSONSerialization JSONObjectWithData:data options:nil error:nil];
[mainTableView reloadData];
}
任何想法如何解决这一问题?谢谢!