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数据自动被存储,不需要额外手动操作处理
网友评论