当前位置:网站首页>unrecognized selector sent to instance 0x10b34e810
unrecognized selector sent to instance 0x10b34e810
2022-07-07 03:11:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm the king of the whole stack
A mistake :
*** 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.}
Print the 0x10b34e810 object , doubt NSError *error Forced to string Type of unsuccessful
Hang up here .
..
(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.}
summary : The basic type of value can be converted ,nsobject Type cannot be forcibly converted ( General basic types can be forcibly converted .
int,float Can turn into string .
Can object types not be converted ..
example nsurl Cannot be converted into string..nserror Nor can it be converted into string) What a major common sense , And always forget .
Copyright notice : This article is the original article of the blogger , Blog , Do not reprint without permission .
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/116774.html Link to the original text :https://javaforall.cn
边栏推荐
- Simple bubble sort
- 硬件之OC、OD、推挽解释
- PSINS中19维组合导航模块sinsgps详解(时间同步部分)
- How to verify accesstoken in oauth2 protocol
- 杰理之电话本获取【篇】
- Detailed explanation of 19 dimensional integrated navigation module sinsgps in psins (initial assignment part)
- Nuggets quantification: obtain data through the history method, and use the same proportional compound weight factor as Sina Finance and snowball. Different from flush
- 从 1.5 开始搭建一个微服务框架——日志追踪 traceId
- Leetcode 77: combination
- Centerx: open centernet in the way of socialism with Chinese characteristics
猜你喜欢
Intelligent static presence detection scheme, 5.8G radar sensing technology, human presence inductive radar application
Appx代码签名指南
[2022 national tournament simulation] polygon - computational geometry, binary answer, multiplication
Software testing -- common assertions of JMeter interface testing
Redis入門完整教程:問題定比特與優化
mos管实现主副电源自动切换电路,并且“零”压降,静态电流20uA
密码学系列之:在线证书状态协议OCSP详解
Redis入门完整教程:复制配置
从0开始创建小程序
你知道电子招标最突出的5大好处有哪些吗?
随机推荐
应用程序启动速度的优化
Detailed explanation of 19 dimensional integrated navigation module sinsgps in psins (initial assignment part)
2022.6.28
制作(转换)ico图标
Detailed explanation of 19 dimensional integrated navigation module sinsgps in psins (filtering part)
opencv环境的搭建,并打开一个本地PC摄像头。
杰理之关于 DAC 输出功率问题【篇】
Centerx: open centernet in the way of socialism with Chinese characteristics
杰理之FM 模式单声道或立体声选择设置【篇】
商城商品的知识图谱构建
Unity使用MaskableGraphic画一条带箭头的线
Intelligent static presence detection scheme, 5.8G radar sensing technology, human presence inductive radar application
Leetcode 77: combination
C language exercises_ one
QT Bluetooth: qbluetooth DeviceInfo
LeetCode 77:组合
Left path cloud recursion + dynamic planning
Matlab Error (Matrix dimensions must agree)
MOS transistor realizes the automatic switching circuit of main and auxiliary power supply, with "zero" voltage drop and static current of 20ua
uniapp适配问题