-[__ NSCFConstantString trim]的原因和解决方案如何? [英] How is the causes and solutions -[__NSCFConstantString trim]?

查看:102
本文介绍了-[__ NSCFConstantString trim]的原因和解决方案如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用j2objc. 从Java到objective-c(ios)

I use the j2objc . from java to objective-c (ios)

2013-06-01 16:17:10.770 tttttt[4433:907] -[__NSCFConstantString trim]: unrecognized selector sent to instance 0x2aba60
2013-06-01 16:17:10.774 tttttt[4433:907] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFConstantString trim]: unrecognized selector sent to instance 0x2aba60'
*** First throw call stack:
(0x311d93e7 0x38ed4963 0x311dcf31 0x311db64d 0x31133208 0x114d2d 0x124625 0x151329 0x150905 0x150e3b 0x1505e3 0xfbe53 0x330d3087 0x330d303b 0x330d3015 0x330d28cb 0x330d2db9 0x32ffb5f9 0x32fe88e1 0x32fe81ef 0x34d005f7 0x34d00227 0x311ae3e7 0x311ae38b 0x311ad20f 0x3112023d 0x311200c9 0x34cff33b 0x3303c2b9 0xfb71f 0x39301b20)
libc++abi.dylib: terminate called throwing an exception

请告诉我原因和解决方法

please tell me the causes and solutions

推荐答案

原因是缺少方法[NSString trim].请参阅 NSString类参考.

The cause is the lack of the method [NSString trim]. See the NSString Class Reference.

这篇关于-[__ NSCFConstantString trim]的原因和解决方案如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆