标签:
2.只有程序启动时自动去加载的图片, 才会自动在4inch retina时查找-568h@2x.png
二:控件总结---------
一个控件用肉眼看不见,有哪些可能
添加一个控件的建议(调试技巧):
API Reference对__block变量修饰符有如下几处解释:
//A powerful feature of blocks is that they can modify
variables in the same lexical scope. You signal that a block
can modify a variable using the __block storage type
modifier.
//At function level are __block variables. These are mutable
within the block (and the enclosing scope) and are preserved
if any referencing block is copied to the heap.
大概意思归结出来就是两点:
__weak specifies a reference that does not keep the
referenced object alive. A weak reference is set to nil when
there are no strong references to the object.
使用了__weak修饰符的对象,作用等同于定义为weak的property。自然不会导致循环引用问题,因为苹果文档已经说的很清楚,当原对象没有任何强引用的时候,弱引用指针也会被设置为nil。
标签:
原文地址:http://www.cnblogs.com/iCocos/p/4787810.html