下面是具体代码// ViewController.m#import "ViewController.h"@interface ViewController ()@property (nonatomic,weak) IBOutlet UITextField *text1;@property (nona...
分类:
移动开发 时间:
2015-02-03 01:49:17
阅读次数:
170
//LOL英雄展示#import "SKUIViewController"import "hero.h"@interface SKUIViewController()@property(nonatomic,strong)NSArray *heros;@property(nonatomic,weak)...
分类:
其他好文 时间:
2015-02-02 01:55:45
阅读次数:
288
#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