1.assignassign只是简单赋值,不更改索引计数,适用于基础数据类型 (例如NSInteger,CGFloat)和C数据类型(int, float, double, char, 等) 2.copycopy用来建立一个索引计数为1的对象,然后释放旧对象,常用语NSString ,指在赋值时.....
分类:
其他好文 时间:
2016-01-20 01:02:04
阅读次数:
208
Use the String ResourcesYou can reference your string resources in your source code and other XML files using the resource name defined by theelement'...
分类:
其他好文 时间:
2016-01-20 00:58:14
阅读次数:
239
一、weak和strong 1.理解 刚开始学UI的时候,对于weak和strong的描述看得最多的就是“由ARC引入,weak相当于OC中的assign,但是weak用于修饰对象,但是他们都不会造成引用计数加1;而strong则相当于OC中规定retain,它会造成引用计数加1”。 ARC的...
分类:
移动开发 时间:
2016-01-19 23:38:40
阅读次数:
2703
使用assign: 对基础数据类型 (NSInteger)和C数据类型(int, float, double, char,等)使用copy: 对NSString使用retain: 对其他NSObject和其子类assign就是简单的赋值,不更改引用计数,所以直接使用基础数据copy是直接拷贝内容,成...
分类:
移动开发 时间:
2016-01-19 17:12:31
阅读次数:
198
NavisWorks API的内容大部分为二次开发,在NavisWorks软件中增加所需要的功能。而我所接到的工作任务是,将.nwc等格式的文件通过窗口打开并且可交互。也就是说,需要有一个程序去调用API,从而打开NavisWorks文件。在.NET API Reference Guide中其实已经...
首先我们要布局一下,使用sizeclass来布局:连线过来:
@property (weak, nonatomic) IBOutlet UIButton *bird;
@property (strong, nonatomic) IBOutletCollection(UIImageView) NSArray *ices;对于冰块的连线,因为我们这里的冰块有4块,所以我们直接连的是一个数组
懒加载一个U...
分类:
其他好文 时间:
2016-01-19 10:40:53
阅读次数:
153
#import "ViewController.h"#import @interface ViewController ()@property (weak, nonatomic) IBOutlet UIImageView *imageView;@end@implementation ViewCont...
分类:
其他好文 时间:
2016-01-18 22:49:03
阅读次数:
230
#import "ViewController.h"#import @interface ViewController () @property (nonatomic, weak) AVCaptureSession *session;@property (nonatomic, weak) AVCap...
分类:
其他好文 时间:
2016-01-18 22:45:42
阅读次数:
228
http://docs.spring.io/spring/docs/current/spring-framework-reference/html/websocket.htmlhttps://spring.io/guides/gs/messaging-stomp-websocket/https://...
分类:
编程语言 时间:
2016-01-18 20:47:25
阅读次数:
581
undefined reference to `rpl_malloc'编译tslib,执行make时提示undefined reference to `rpl_malloc'是因为config.h.in文件中有/* Define to rpl_malloc if the replacement fu...
分类:
其他好文 时间:
2016-01-18 20:25:10
阅读次数:
150