NSUserDefaults API中英文文档简介及使用
Overview
The NSUserDefaults class provides a programmatic interface for interacting with the defaults system. The defaults system allows an application to customize its behavior to match a user’s preferences. For example, y...
TreeView节点拖拉操作1 //事先设置 TreeView1.DragMode= dmAutomatic; unitUnit1; interface uses Windows,Messages,SysUtils,Variants,Classes,Graphics,Controls,Forms, ...
分类:
其他好文 时间:
2014-07-29 21:38:52
阅读次数:
245
ListView往TreView里面拖拽 unitUnit1; interface uses Windows,Messages,SysUtils,Variants,Classes,Graphics,Controls,Forms, Dialogs,ComCtrls; type TForm1=class...
分类:
其他好文 时间:
2014-07-29 21:38:12
阅读次数:
241
一,单纯的set get,.h文件@interface Person : NSObject{ NSString *_name;}-(void)setName:(NSString *)name;-(NSString *)getName;@end.m文件-(void)setName:(NSStri...
分类:
其他好文 时间:
2014-07-29 21:35:42
阅读次数:
253
unitUnit1; interface uses Windows,Messages,SysUtils,Variants,Classes,Graphics,Controls,Forms, Dialogs,ComCtrls,StdCtrls; type TForm1=class(TForm) List...
分类:
其他好文 时间:
2014-07-29 21:27:32
阅读次数:
320
现在做的App,因为考虑到安全性,所以用到了AES加密,以及配对安卓使用的AES加密。.h文件#import #import #import #define AES_KEY @"cx@hy!*&y.)x#[;>"#define AES_IV @"0102030405060708"@interface...
分类:
移动开发 时间:
2014-07-29 21:01:52
阅读次数:
608
遍历目录及子目录 unitUnit1; interface uses Windows,Messages,SysUtils,Variants,Classes,Graphics,Controls,Forms, Dialogs,StdCtrls; type TForm1=class(TForm) Memo...
分类:
其他好文 时间:
2014-07-29 20:41:22
阅读次数:
365
unit untCpuInfo;interface{ 获取 CPU 制造商 }function GetCpuFactory: String;{ 获取 CPU 家族系统 }function GetCpuFamily: Cardinal;{ 获取 CPU 型号 }function GetCpuModel...
分类:
其他好文 时间:
2014-07-29 20:40:52
阅读次数:
375
在使用接口回调的时候发现了一个经常犯的错误,就是回调函数里面的实现有可能是用多线程或者是异步任务去做的,这就会导致我们期望函数回调完毕去返回一个主函数的结果,实际发现是行不通的,因为如果回调是多线程的话你是无法和主函数同步的,也就是返回的数据是错误的,这是非常隐秘的一个错误。那有什么好的方法去实现数据的线性传递呢?先介绍下回调机制原理。
回调函数
回调函数就是一个...
分类:
移动开发 时间:
2014-07-29 17:44:12
阅读次数:
233
For bulk and interrupt transfers, the data toggle resets only on Set Configuration, Set Interface, and Clear Feature(Endpoint Halt).For isochronous t....
分类:
其他好文 时间:
2014-07-29 17:10:42
阅读次数:
249