iOS 之各种Crash

1.*** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan 135]'


2.-[_NSInlineData objectForKeyedSubscript:]: unrecognized selector sent to instance 0x13dabd600

原因:

By default AFNetworking will parse your JSON for you. AFHTTPResponseSerializer will just give you an NSData object as responseObject

解决:
remove:
manager.responseSerializer=[AFHTTPResponseSerializer serializer];
or
manager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"text/plain", @"text/html",@"application/javascript",@"application/json", nil];

stackoverflow链接

3.ImageIO: CreateMetadataFromXMPBufferInternal Threw error #201 (XML parsing failure)

方案链接

转载于:https://www.cnblogs.com/YaoJinye/p/5995371.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值