当前位置:网站首页>unrecognized selector sent to instance 0x10b34e810
unrecognized selector sent to instance 0x10b34e810
2022-07-06 19:36:00 【全栈程序员站长】
大家好,又见面了,我是全栈君
一个错误:
*** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[NSURLError isEqualToString:]: unrecognized selector sent to instance 0x10b34e810’ *** First throw call stack:
(lldb) po 0x10b34e810 Error Domain=NSURLErrorDomain Code=-1004 “Could not connect to the server.” UserInfo=0x10a582670 {NSUnderlyingError=0x10a664e90 “Could not connect to the server.”, NSErrorFailingURLStringKey= , NSLocalizedDescription=Could not connect to the server.}
打印了 0x10b34e810对象,怀疑 NSError *error 强制转成string类型的不成功
在这里挂掉了。
。。
(lldb) po (NSString*)error Error Domain=NSURLErrorDomain Code=-1004 “Could not connect to the server.” UserInfo=0x10a5223a0 {NSUnderlyingError=0x10b181140 “Could not connect to the server.”, NSErrorFailingURLStringKey=, NSLocalizedDescription=Could not connect to the server.}
总结:数值基本类型的能够转,nsobject类型的不能够强制转(一般普通的基本类型能够强制转化。
int,float能够转成string 。
对象类型的是不是不能够转化啊。。
比方nsurl的不能够转成string。。nserror也不能够转成string)多么主要的常识丫,还总是忘了。
版权声明:本文博主原创文章,博客,未经同意不得转载。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/116774.html原文链接:https://javaforall.cn
边栏推荐
- 又一百万量子比特!以色列光量子初创公司完成1500万美元融资
- c语言字符串排序
- Google Earth engine (GEE) -- 1975 dataset of Landsat global land survey
- Code line breaking problem of untiy text box
- sshd[12282]: fatal: matching cipher is not supported: [email protected] [preauth]
- PSINS中19维组合导航模块sinsgps详解(时间同步部分)
- Babbitt | metauniverse daily must read: is IP authorization the way to break the circle of NFT? What are the difficulties? How should holder choose the cooperation platform
- A complete tutorial for getting started with redis: RDB persistence
- Another million qubits! Israel optical quantum start-up company completed $15million financing
- [node learning notes] the chokidar module realizes file monitoring
猜你喜欢

Analysis of USB network card sending and receiving data

Redis Getting started tutoriel complet: positionnement et optimisation des problèmes

密码学系列之:在线证书状态协议OCSP详解
![[socket] ① overview of socket technology](/img/91/dccbf27a17418ea632c343551bccc0.png)
[socket] ① overview of socket technology

How to write test cases for test coupons?

掘金量化:通过history方法获取数据,和新浪财经,雪球同用等比复权因子。不同于同花顺

What management points should be paid attention to when implementing MES management system

Use of tensorboard

A complete tutorial for getting started with redis: AOF persistence

wireshark安装
随机推荐
Redis入门完整教程:客户端案例分析
Oauth2协议中如何对accessToken进行校验
wireshark安装
Derivative, partial derivative, directional derivative
硬件之OC、OD、推挽解释
Detailed explanation of 19 dimensional integrated navigation module sinsgps in psins (initial assignment part)
C language string sorting
How to write test cases for test coupons?
PSINS中19维组合导航模块sinsgps详解(时间同步部分)
杰理之关于 DAC 输出功率问题【篇】
Read fast RCNN in one article
Redis getting started complete tutorial: client management
QT Bluetooth: qbluetooth DeviceInfo
[node learning notes] the chokidar module realizes file monitoring
AWS learning notes (I)
Redis入門完整教程:問題定比特與優化
凌云出海记 | 易点天下&华为云:推动中国电商企业品牌全球化
INS/GPS组合导航类型简介
从 1.5 开始搭建一个微服务框架——日志追踪 traceId
Redis入门完整教程:RDB持久化