写一个类 起作用是 传值
#import
@interface singleton : NSObject
+(singleton *)shareData;
@property (strong, nonatomic) NSString *value;
@end
#import "singleton.h"...
分类:
移动开发 时间:
2014-09-15 11:21:28
阅读次数:
164
Category,分类,类目。主要作?用是为没有源代码的添加方法,例系统自带的NSString。通过Category添加的方法会成为原类的一部分。从?而达到扩展一 个类的功能。CategoryNSString+SayHi.h文件@interface NSString (SayHi)- (void)h...
分类:
其他好文 时间:
2014-09-14 23:34:07
阅读次数:
182
实现不考虑限制并发数的情况下对某队列的并发处理,欢迎批评指正: public interface IMessageQueueHandler { void StartRead(); } public abstract class SimplifiedMessage...
分类:
其他好文 时间:
2014-09-14 23:31:57
阅读次数:
274
xib和nib都是Interface Builder的图形界面设计文档,nib这个名字来自于NeXTSTEP系统,在NeXTSTEP被Apple收购之前,一直使用nib作为Interface Builder的图形文档,nib的发展经过了nib2.0,nib3.0,到NeXTSTEP被App...
分类:
其他好文 时间:
2014-09-14 22:03:27
阅读次数:
2727
Demo#import "SDViewController.h"@interface SDViewController ()@property (weak, nonatomic) IBOutlet UITextField *userName;@property (weak, nonatomic) I...
分类:
移动开发 时间:
2014-09-14 17:58:17
阅读次数:
197
/*abstract class AbsDemo{ abstract void show1(); abstract void show2();}当一个抽象类中的方法都是抽象的时候,这时可以将该抽象类用另一种形式定义和表示,就是 接口 interface。*///定义接口使用的关键字不是c...
分类:
编程语言 时间:
2014-09-14 15:19:47
阅读次数:
237
一:简单工厂 最初学习的一个运用简单工厂的例子是做一个计算器: 首先是接口public interface Cal {public double Calcu(double num1,double num2);}然后是加减乘除类实现计算接口:public class Add implements Ca...
分类:
数据库 时间:
2014-09-13 20:04:25
阅读次数:
255
unit D7ComboBoxStringsGetPatch; // The patch fixes TCustomComboBoxStrings.Get method for empty string item in Delphi 7. interface {$IF RTLVersion 15.....
分类:
其他好文 时间:
2014-09-13 18:40:15
阅读次数:
193
interface和abstract class之间有哪些区别?在C#中1.首先abstract class 还是class,所以可以有数据成员,interface不可以2.abstract class 可以有非abstract方法,而且可以有方法的实现,interface的方式不能有实现3.abs...
分类:
其他好文 时间:
2014-09-13 18:39:15
阅读次数:
218