标签:
与类命名相同,此外需添加要扩展的类名和“+”
例如:NSString+URLEncoding
与类命名相同,此外需添加“Delegate”后缀
例如:MyViewDelegate
举例:- (void)setPostValue:(int)value
举例:- (void)sendUserInfo:(NSDictionary *)userInfo
typedef enum UIControlEvents{
UIControlEventTouchDown,
UIControlEventTouchUpInside
}UIControlEvents;
-(void)doSomethingWith:(GTMFoo *)theFoo
rect:(NSRect)theRect
interval:(float)theInterval
标签:
原文地址:http://www.cnblogs.com/yunxinxi/p/4603304.html