当前位置:网站首页>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
边栏推荐
- Redis入门完整教程:问题定位与优化
- tensorboard的使用
- c语言字符串排序
- Qpushbutton- "function refinement"
- Redis入门完整教程:客户端管理
- Cloud Mail . NET Edition
- 2022 spring recruitment begins, and a collection of 10000 word interview questions will help you
- How does C language (string) delete a specified character in a string?
- Software testing -- common assertions of JMeter interface testing
- C language exercises_ one
猜你喜欢
Redis入門完整教程:問題定比特與優化
Classify the features of pictures with full connection +softmax
A complete tutorial for getting started with redis: AOF persistence
【2022国赛模拟】多边形——计算几何、二分答案、倍增
ERROR: Could not find a version that satisfies the requirement xxxxx (from versions: none)解决办法
商城商品的知识图谱构建
How to analyze fans' interests?
Redis introduction complete tutorial: client case analysis
The 8 element positioning methods of selenium that you have to know are simple and practical
PSINS中19维组合导航模块sinsgps详解(时间同步部分)
随机推荐
Niuke programming problem -- double pointer of 101 must be brushed
Redis introduction complete tutorial: client case analysis
The so-called consumer Internet only matches and connects industry information, and does not change the industry itself
C language string sorting
Redis入门完整教程:复制原理
杰理之开 BLE 退出蓝牙模式卡机问题【篇】
Mmdetection3d loads millimeter wave radar data
PSINS中19维组合导航模块sinsgps详解(时间同步部分)
Redis入门完整教程:复制配置
Cryptography series: detailed explanation of online certificate status protocol OCSP
Planning and design of double click hot standby layer 2 network based on ENSP firewall
oracle连接池长时间不使用连接失效问题
Redis入门完整教程:客户端案例分析
Static proxy of proxy mode
The 8 element positioning methods of selenium that you have to know are simple and practical
ERROR: Could not find a version that satisfies the requirement xxxxx (from versions: none)解决办法
Qpushbutton- "function refinement"
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
Redis introduction complete tutorial: replication principle
Code line breaking problem of untiy text box