#import "SKUIViewController.h"@interface SKUIViewController() @property(nonatomic,weak)IBOutlet UIScrollView *scrollview;@property(nonatomic,weak)IBOu...
分类:
其他好文 时间:
2015-02-01 13:26:06
阅读次数:
145
@interface YGSectionHeaderView : UIView@property NSUInteger section;@property (nonatomic, weak) UITableView *tableView;@end@implementation YGSectionHe...
分类:
移动开发 时间:
2015-01-31 23:12:23
阅读次数:
217
Chapter 3 Controlling and Scrolling@implementation GameScene { __weak CCNode *_levelNode; __weak CCPhysicsNode *_physicalNode; __weak CCNode ...
分类:
其他好文 时间:
2015-01-30 21:01:52
阅读次数:
267
iOS编程过程中,经常看到一些属性前面有些修饰符,比如copy,retain等。这些关键字,是Object-C语言中,对于Property的setter。Mac官网:The Objective-C Programming Language – Declared Properties – Setter...
分类:
其他好文 时间:
2015-01-30 10:42:24
阅读次数:
190
@property与@synthesize是成对出现的,可以自动生成某个类成员变量的存取方法。在Xcode4.5以及以后的版本,@synthesize可以省略。1.atomic与nonatomicatomic:默认是有该属性的,这个属性是为了保证程序在多线程情况,编译器会自动生成一些互斥加锁代码,避...
分类:
移动开发 时间:
2015-01-30 10:38:16
阅读次数:
610
std::auto_ptr很多的时候并不能满足我们的要求,比如auto_ptr不能用作STL容器的元素。boost的smart_ptr中提供了4种智能指针和2种智能指针数组来作为std::auto_ptr的补充。
shared_ptr:使用shared_ptr进行对象的生存期自动管理,使得分享资源所有权变得有效且安全.
weak_ptr:weak_ptr 是 shared_ptr 的观察员...
分类:
其他好文 时间:
2015-01-29 09:22:31
阅读次数:
288
Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid "inside jobs" where employees collaborate with gambler...
分类:
系统相关 时间:
2015-01-25 11:13:05
阅读次数:
228
#ViewController.m#import "ViewController.h"@interface ViewController ()/** * storybord连线 */@property (weak, nonatomic) IBOutlet UIImageView *imageVie....
分类:
移动开发 时间:
2015-01-15 23:34:53
阅读次数:
290
#import "ViewController.h"@import MediaPlayer;@interface ViewController (){ MPMoviePlayerController *_mov;}@property (weak, nonatomic) IBOutlet UIImag...
分类:
移动开发 时间:
2015-01-15 12:46:32
阅读次数:
190
自动引用计数ARC不是垃圾回收,而是编译器自动插入代码来减少程序员的代码输入和失误。 同时比垃圾和效率要高,因为其不影响运行时间,相当于自己管理内存。总是通过属性来管理实例变量(init/dealloc除外),在dealloc中释放所有属性。dealloc中会自动加入释放实例变量的代码,因此不必要....
分类:
移动开发 时间:
2015-01-14 19:52:25
阅读次数:
226