1.報錯:
Snip20160217_2.png
2.驗證錯誤:
XDLLog(@"%@---%@",responseObject,[responseObject class]);
Snip20160217_3.png
3.解決方法:
//如果服務(wù)器返回的數(shù)據(jù)不是一個字典,直接返回(解決空評論導(dǎo)致的報錯)
if(![responseObject isKindOfClass:[NSDictionary class]])
{
self.commentTableView.mj_header.hidden = YES;
[self.commentTableView.mj_footer endRefreshingWithNoMoreData];
return;
}