美文网首页
[_NSInlineData objectForKeyedSub

[_NSInlineData objectForKeyedSub

作者: llq_31da | 来源:发表于2018-03-28 11:41 被阅读0次

1.[_NSInlineData objectForKeyedSubscript:]: unrecognized selector sent to instance 0x60000028dac0'

原因是 后台设置的JSON字符和AFNetWorking解析的不一致

a.用 AFNetworking 进行数据处理的时候 加上`manager.responseSerializer= [AFJSONResponseSerializer serializer];`

b.在数据解析成功的方法里加上

NSString*result = [[NSString alloc] initWithData:responseObject encoding:NSUTF8StringEncoding];

NSDictionary * dic = [NSJSONSerialization JSONObjectWithData:responseObject options:NSJSONReadingAllowFragments error:nil];

NSLog(@"result1 = %@", result);

NSLog(@"dic = %@",dic);

2.The behavior of the UICollectionViewFlowLayout is not defined because:the item width must be less than the width of theUICollectionViewminus the section insets left and right values, minus the content insets left and right values.   

UICollectionView中item的实际宽度=展示宽度+间距

3.Could not successfully update network info during initialization.

4.iOS中UIWebView请求的cookie数据问题:cookie数据自动被存储,不需要额外手动操作处理

相关文章

网友评论

      本文标题:[_NSInlineData objectForKeyedSub

      本文链接:https://www.haomeiwen.com/subject/rygefftx.html