一次触摸两个 uitextview 时崩溃
我的应用程序中有两个 uitextview。这两个对象都属于同一类 uitextview。我从 Touchs begin 方法传递对象 self 的通知,并从 uitextview 类传递结束触摸,以便将 uitextview 进一步处理到另一个类。现在,当我同时触摸这两个文本视图时,我的应用程序崩溃并出现以下错误。
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'
I have two uitextviews in my application. Both objects are of same class of uitextview.I am passing notification with object self from touches begin method and touches ended from uitextview class for further processing of uitextview to another class. Now when i touch these two textviews simultaneously my app crashes with following error.
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这意味着您向字典中插入了一个 nil 对象。
也许是对象[0]。
it's means you insert a nil object to dictionary.
maybe objects[0].