libc++abi.dylib: terminate_handler unexpectedly threw an exception修复
来源:互联网 发布:淘宝店主在哪进货 编辑:程序博客网 时间:2024/06/08 02:24
代码如下
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
0 0
- 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错误小结
- 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 问题解决
- iOS libc++abi.dylib: terminate_handler unexpectedly threw an exception
- 151128libc++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
- libc++abi.dylib: terminate_handler unexpectedly threw an exception错误
- 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错误小结
- 知识点:数组
- ZABBIX 钉钉报警 插件(python)
- Nginx 403 forbidden的解决办法
- Redis+Spring缓存实例(windows环境,附实例源码及详解)
- Linux动态库(.so)搜索路径设置方法
- libc++abi.dylib: terminate_handler unexpectedly threw an exception修复
- Android的活动的启动模式
- 2017年1月23号
- Android 利用Gson生成或解析json
- maven--M2Eclipse
- C/S B/S 及WEB工作原理
- 2017年上海“居转户”政策
- Android 开发10个常用工具类
- Ambari2.4build问题