当前位置:网站首页>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
边栏推荐
- 简单冒泡排序
- QT Bluetooth: qbluetooth DeviceInfo
- Left path cloud recursion + dynamic planning
- 上个厕所的功夫,就把定时任务的三种调度策略说得明明白白
- C language string sorting
- Unity custom webgl packaging template
- The annual salary of general test is 15W, and the annual salary of test and development is 30w+. What is the difference between the two?
- Statistics of radar data in nuscenes data set
- Construction of knowledge map of mall commodities
- c语言字符串排序
猜你喜欢
Five reasons for clothing enterprises to deploy MES management system
centerX: 用中国特色社会主义的方式打开centernet
uniapp的表单验证
Redis getting started complete tutorial: replication topology
What are the characteristics of the operation and maintenance management system
[2022 national tournament simulation] polygon - computational geometry, binary answer, multiplication
Left path cloud recursion + dynamic planning
Summary of basic debugging steps of S120 driver
2022 spring recruitment begins, and a collection of 10000 word interview questions will help you
【2022国赛模拟】多边形——计算几何、二分答案、倍增
随机推荐
“零售为王”下的家电产业:什么是行业共识?
Read fast RCNN in one article
Mmdetection3d loads millimeter wave radar data
凌云出海记 | 易点天下&华为云:推动中国电商企业品牌全球化
商城商品的知识图谱构建
IDEA重启后无法创建Servlet文件的解决方案
Unity uses maskablegraphic to draw a line with an arrow
尚硅谷JVM-第一章 类加载子系统
c语言(字符串)如何把字符串中某个指定的字符删除?
Summary of basic debugging steps of S120 driver
首届“量子计算+金融科技应用”研讨会在京成功举办
Examples of how to use dates in Oracle
The so-called consumer Internet only matches and connects industry information, and does not change the industry itself
2022 spring recruitment begins, and a collection of 10000 word interview questions will help you
PSINS中19维组合导航模块sinsgps详解(初始赋值部分)
Cglib agent in agent mode
Redis入门完整教程:复制配置
Redis getting started complete tutorial: replication configuration
QT常见概念-1
Kysl Haikang camera 8247 H9 ISAPI test