unrecognized selector sent to instance的一类解决办法

简介: unrecognized selector sent to instance的一类解决办法

今天重构代码,运行时反复报错:


unrecognized selector sent to instance


仔细检查代码,完全无问题。


后来发现,就h中的声明和实现差异导致的:



- (void) sendMqttMsg:(NSString *) qid msgId:(int)msgId msgData:(NSMutableDictionary *) data;


- (void) sendMqttMsg:(NSString *) qid msgId:(int)msgId    data:(NSMutableDictionary *) data


{

//


}


统一后问题解决。



注意最后一个参数的说明的差异。

希望能对大家有所帮助。


目录
相关文章
|
7月前
|
JavaScript
Property “selectedItemIndex“ was accessed during render but is not defined on instance. 报错解决
Property “selectedItemIndex“ was accessed during render but is not defined on instance. 报错解决
702 0
|
7月前
network is not ready: runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady me
network is not ready: runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady me
237 1
|
4月前
|
开发工具 git
Stylelint——Unexpected unknown pseudo-class selector ":deep" selector-pseudo-class-no-unknown
新项目制定规范接入了stylelint,并通过husky在git提交时去触发检测修复,使用`:deep()`的时候却发现了报错;
153 1
|
7月前
|
安全 Java 应用服务中间件
A configuration error occurred during startup.Please verify the preference field with the prompt: To
A configuration error occurred during startup.Please verify the preference field with the prompt: To
|
Java Spring
Initialization failed for ‘https://start.spring.io‘ Please check URL, network and proxy settings解决办法
Initialization failed for ‘https://start.spring.io‘ Please check URL, network and proxy settings解决办法
3610 1
Initialization failed for ‘https://start.spring.io‘ Please check URL, network and proxy settings解决办法
unrecognized selector sent to instance的一类解决办法
unrecognized selector sent to instance的一类解决办法
151 0
解决performSelector may cause a leak because its selector is unknown警告
采用以下方法时会提示【performSelector may cause a leak because its selector is unknown】警告
213 0
|
Android开发
Returned WKWebView was not created with the given configuration问题修复
调用WKWebView的时候,有些页面会打开新的一页,导致WKWebView出现闪退日志
266 0
报错解决:Reason: Failed to determine a suitable driver class
报错解决:Reason: Failed to determine a suitable driver class
2562 0
报错解决:Reason: Failed to determine a suitable driver class
|
应用服务中间件 Android开发
a configuration error occurred during startup. place verify the preference field whth the prompt:TomcatJDK name:
a configuration error occurred during startup. place verify the preference field whth the prompt:TomcatJDK name:
141 0
a configuration error occurred during startup. place verify the preference field whth the prompt:TomcatJDK name: