react-native报错[NSTaggedPointerString unsignedIntValue]: unrecognized selector sent to instance的解决办法
来源:互联网 发布:亚像素边缘提取算法 编辑:程序博客网 时间:2024/06/06 00:00
Xcode运行React-Native新建的项目会在
NSUInteger headersContentLength = headers[@"Content-Length"] != nil ? [headers[@"Content-Length"] unsignedIntValue] : 0;
这里报错,报错信息是
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSTaggedPointerString unsignedIntValue]: unrecognized selector sent to instance
解决办法是将这句改为
NSUInteger headersContentLength = headers[@"Content-Length"] != nil ? (NSUInteger)[headers[@"Content-Length"] integerValue] : 0;
完美解决
阅读全文
0 0
- react-native报错[NSTaggedPointerString unsignedIntValue]: unrecognized selector sent to instance的解决办法
- Xcode的报错崩溃 - unrecognized selector sent to instance
- 使用Masonry报unrecognized selector sent to instance的错
- unrecognized selector sent to instance 解决办法
- tableview 出现unrecognized selector sent to instance的解决办法
- AFNetworking json解析报错 unrecognized selector sent to instance
- iOS报错[__NSCFNumber length]: unrecognized selector sent to instance
- iOS报错[__NSArrayI removeObjectAtIndex:]: unrecognized selector sent to instance
- 报错-[UIView wbsdkCenterX]: unrecognized selector sent to instance
- iOS报错[__NSCFNumber length]: unrecognized selector sent to instance
- "unrecognized selector sent to instance *****"的错误
- 异样的unrecognized selector sent to instance
- unrecognized selector sent to instance
- unrecognized selector sent to instance
- unrecognized selector sent to instance
- unrecognized selector sent to instance
- unrecognized selector sent to instance
- unrecognized selector sent to instance
- 记录我的react之路 第一天
- x86-32汇编语言基础汇总
- iOS学习笔记-108.多线程07——CGD栅栏函数、延时、一次性代码
- STM32串口配置的一种方法
- oracl普通表转换成分区表(使用id作为间隔分区)
- react-native报错[NSTaggedPointerString unsignedIntValue]: unrecognized selector sent to instance的解决办法
- ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
- iOS学习笔记-109.多线程08——CGD快速迭代
- Centos7安装Nginx
- 一、CentOS6.5安装ElasticSearch5.5完整纪录与问题总结
- ORACLE 11G 性能诊断优化之ASH实战分析详解
- iOS学习笔记-110.多线程09——CGD队列组
- promise.js
- Android强指针和弱指针