【发布时间】:2017-03-26 11:05:44
【问题描述】:
我刚刚开始 IOS 开发,我正在尝试对字符串进行一些操作
var str = "Hello, playground"
let newTypeString = NSString(string: str) // here is the error
//this is NSString that i used to create newTypeString NSString(string: String)
这是我遇到的错误:
Playground 执行中止:错误:执行被中断, 原因:EXC_BAD_INSTRUCTION(代码=EXC_I386_INVOP,子代码=0x0)
还有其他人遇到过这个错误吗?
【问题讨论】:
-
该代码在 Playground 中运行没有问题。请用你真正的问题更新问题,否则问题和答案对未来的读者都是无用的。