默认情况下,对象属性是strong的,标量属性是assign的。但是有一个例外,就是对于具有可变副本的属性,我们倾向于将其声明为copy。比如说@interface
Person : NSObject@property (nonatomic,copy) NSString* name; @proper...
分类:
其他好文 时间:
2014-06-29 07:54:44
阅读次数:
444
JAVA线程 工作内存 主内存java内存模型中的八种操作:lock unlock read load
use assign store write八种基本操作必须满足的规则volatile当一个变量被定义成volatile之后,它将具备两种特性
一是保证此变量对所有线程的...
分类:
编程语言 时间:
2014-06-13 13:22:55
阅读次数:
294
1.1Implement an algorithm to determine if a
string has all unique characters. What if you cannot use additional data
structures?字符串问题,需要先确定是不是只有ASCII码...
分类:
其他好文 时间:
2014-06-11 12:27:53
阅读次数:
247
安装完Nginx之后,启动报错。[vagrant@localhost sbin]$ sudo
./nginx./nginx: error while loading shared libraries: libpcre.so.1: cannot open
shared object file: No ...
分类:
其他好文 时间:
2014-06-08 19:01:47
阅读次数:
294
设置字体出错:txt.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/luculent"));
然后发现,竟然是因为自己没有加上后缀,改成下面这样就好了
txt.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/luculent.ttf"));
出这个错误了先看看名字...
分类:
编程语言 时间:
2014-06-08 15:03:27
阅读次数:
298
在vm下redhat5下安装oracle 11g后,登录sqlplus 报:
sqlplus: error while loading shared libraries: /home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc:...
分类:
数据库 时间:
2014-06-07 12:00:29
阅读次数:
303
除了elementModel外,还有两个父类。1.与label的显示有关的类吧。public
interface IShowHideLabel { public void setLabelShow(Object sel, boolean show);
public boolean isL...
分类:
其他好文 时间:
2014-06-07 11:23:11
阅读次数:
197
假设我们在 Objective C
中向一个对象发送它无法处理的消息,会出现什么情况呢?我们知道发送消息是通过 objc_send(id, SEL, ...) 来实现的,它会首先在对象的类对象的
cache,method list 以及父类对象的 cache, method list 中依次查找 S...
分类:
其他好文 时间:
2014-06-07 10:43:35
阅读次数:
228
动态 变量类型在运行期间确定下来静态 在编译期确定下来强类型 类型不会发生自动变换,弱类型
类型会自动变,比如double+int -> double类型安全 类型对数据访问有严格控制类型不安全 ...Well-typed programs
cannot "go wrong" ...
分类:
编程语言 时间:
2014-06-06 15:36:16
阅读次数:
238
由于项目的软件版本会逐渐递增,原来的测试脚本在新版本上执行的时候会出现错误1.“The
"App(1.0.1.0)-T(0.0.0." Dialog object was not found in the Object
Repository.”错误2.“Cannot identify the obj...
分类:
其他好文 时间:
2014-06-06 07:28:11
阅读次数:
227