1.下列输出是什么?(个人尝试bad_access。。。有人解答吗?) NSString *text = @"info"; memset((__bridge void *)(text), 0, text.length-1); NSString *myString = [NSStri...
分类:
其他好文 时间:
2015-03-16 21:10:19
阅读次数:
150
1:ARC环境下,strong代替retain.weak代替assign
2:weak的作用:在ARC环境下,所有指向这个对象的weak指针都将被置为nil。这个T特性很有用,相信很多开发者都被指针指向已释放的对象所造成的EXC_BAD_ACCESS困扰过,使用ARC以后,不论是strong还是weak类型的指针,都不会再指向一个已经销毁的对象,从根本上解决了意外释放导致的crash。
3:a...
分类:
移动开发 时间:
2015-03-16 16:35:13
阅读次数:
174
#include#include#include//c++标准异常类型的库using namespace std;bad_exception somethingwrong;//在c++中class默认的继承是private 而struct 默认的继承是public//static 类静态成员函数,即...
分类:
其他好文 时间:
2015-03-15 18:03:05
阅读次数:
122
在阅读的过程中有任何问题,欢迎一起交流
邮箱:1494713801@qq.com
QQ:1494713801
执行一个脚本full_build.sh 时, 一直是提示我:
-bash: ./full_build.sh: /bin/bash^M: bad interpreter: No such file or directory
或提醒 syntax error: unex...
分类:
其他好文 时间:
2015-03-13 14:25:04
阅读次数:
151
javaweb_Ⅰjava基础增强——断点ps:Bad version number in .class file. 该错误 指eclipse运行环境低于编辑java版本。双击左键设置断点,F5跳入方法中。step intoF6跳过。step overF7跳出方法 。step retu...
分类:
编程语言 时间:
2015-03-12 11:12:05
阅读次数:
159
开发板上的nand flash写不了,擦除不了:Bad block at 0xxxxx in erase block from 0xxxxx will be skipped……解决方法:nand scrub$(offset) $(size)yenter删除标记的坏块,这样就把整个flash格式化了....
分类:
其他好文 时间:
2015-03-12 00:53:17
阅读次数:
156
SSL error: certificate verify failedis indication ofclient-side error. Try to check certificate chains on good and bad location, find missing intermed...
分类:
其他好文 时间:
2015-03-11 23:00:59
阅读次数:
103
502 Bad Gateway
how to solve this problem ?
on this page , Ctrl + F5 ,send the request to server !...
分类:
其他好文 时间:
2015-03-11 10:54:10
阅读次数:
104
1) 控制作用域 对变量的符号的查询总是沿着作用域链, 从局部作用域开始查询, 如果查到了就停止, 否则继续查询外层作用域 ....一直到全局作用域为止。 所以: 对全局变量的访问时间 > 对局部变量的访问时间。因此要局部变量缓存全局对象可以提高性能。// Bad example:// 对于全局.....
分类:
编程语言 时间:
2015-03-10 22:45:14
阅读次数:
245