libc++abi.dylib: terminate_handler unexpectedly threw an exception修复
2017-02-06 14:55
453 查看
代码如下
真机运行后全局断点断在了 [attributedString1 addAttribute:NSForegroundColorAttributeName value:BuleTextColor range:NSMakeRange(0,20)];这句代码
报错原因是:range长度越界
解决办法:检查Label.text的长度是否达到20
NSMutableAttributedString *attributedString1 = [[NSMutableAttributedString alloc]initWithString:Label.text]; [attributedString1 addAttribute:NSForegroundColorAttributeName value:BuleTextColor range:NSMakeRange(0,20)]; Label.attributedText = attributedString1;
真机运行后全局断点断在了 [attributedString1 addAttribute:NSForegroundColorAttributeName value:BuleTextColor range:NSMakeRange(0,20)];这句代码
报错原因是:range长度越界
解决办法:检查Label.text的长度是否达到20
相关文章推荐
- libc++abi.dylib: terminate_handler unexpectedly threw an exception 问题解决
- libc++abi.dylib: terminate_handler unexpectedly threw an exception错误小结
- 【iOS】libc++abi.dylib: terminate_handler unexpectedly threw an exception
- libc++abi.dylib: terminate_handler unexpectedly threw an exception
- libc++abi.dylib: terminate_handler unexpectedly threw an exception
- libc++abi.dylib: terminate_handler unexpectedly threw an exception
- libc++abi.dylib: terminate_handler unexpectedly threw an exception
- 解决libc++abi.dylib: terminate_handler unexpectedly threw an exception(1)
- libc abi.dylib: terminate_handler unexpectedly threw an exception
- NSScanner: nil string argument libc++abi.dylib: terminate_handler unexpectedly threw an exception问题
- iOS libc++abi.dylib: terminate_handler unexpectedly threw an exception
- libc++abi.dylib: terminate_handler unexpectedly threw an exception
- libc++abi.dylib: terminate_handler unexpectedly threw an exception 报错
- libc++abi.dylib: terminate_handler unexpectedly threw an exception//NSScanner: nil string argument
- UIActionSheet :libc++abi.dylib: terminate_handler unexpectedly threw an exception
- libc++abi.dylib: terminate_handler unexpectedly threw an exception错误小结
- 对于libc++abi.dylib: terminate_handler unexpectedly threw an exception 异常处理如何调试错误
- libc++abi.dylib: terminate_handler unexpectedly threw an exception
- libc++abi.dylib: terminate_handler unexpectedly threw an exception
- terminate_handler unexpectedly threw an exception