与 MessageUI 框架的帐户类发生冲突/崩溃的帐户类
我的代码有问题,特别是“Account”类。我需要使用 messageUI 框架,但它们相互冲突,因此我已将我的 Account
类重命名为 CustAccount
,但我仍然收到相同的错误消息:
由于未捕获的异常而终止应用程序 'NSInvalidArgumentException',原因:'-[Account initWithCoder:]: 无法识别的选择器发送到实例 0x6069560'
这里有人找到了解决方案吗?
I am having an issue with my code, specifically the "Account" class. I need to use messageUI framework, but they are clashing with each other so I have renamed my Account
class to CustAccount
, but still I am getting the same error messages:
Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: '-[Account initWithCoder:]:
unrecognized selector sent to instance 0x6069560'
Have anyone here found solution for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,MessageUI 似乎在其中声明了类 Account,因此,如果您要使用此框架,请不要命名您的类 Account。
Yes it seems the case that MessageUI has class Account declared inside it, so if you are going to use this framework, don't name your class Account.