11 2014 档案
摘要:1:可以为类添加新的方法,但不能添加实例变量。2:第一,无法向类中添加新的实例变量。类别没有位置容纳实例变量。第二,名称冲突,即类别中的方法与现有的方法重名。当发生名称冲突时,类别具有更高的优先级。你的类别方法将完全取代初始方法,从而无法再使用初始方法。有些编程人员在自己的类别方法名中增加一个前缀,...
阅读全文
摘要:#import typedef void(^compeletionHandler) (NSInteger selectButtonIndex);@class ZSDCustom;@protocol ZSDCustomDelegate -(void)showCustomView:(ZSDCustom ...
阅读全文
摘要:#import "ViewController.h"@interface ViewController (){ UILabel *dynamicLabel;}@end@implementation ViewController- (void)viewDidLoad { if (!dynamic...
阅读全文
摘要:#import @interface FirstViewController : UIViewController@property (weak, nonatomic) IBOutlet UITextField *contentTxtField;@end#import "SecondViewCont...
阅读全文
摘要:#import @class ZSDCustomCell;//协议@protocol ZSDCustomCellDelegate //判断选择某行以及某行中的按钮-(void)deleteDidSelectCell:(ZSDCustomCell *)customCell andClickButton...
阅读全文
摘要:#import @interface ViewController : UIViewController@end#import "ViewController.h"@interface ViewController (){ NSMutableArray *dataArray;//uitablevi...
阅读全文
摘要:1:创建一个model数据模型#import @interface DataModel : NSObject//保存section中每行的数据@property(nonatomic,strong)NSMutableArray *array;//section名@property(nonatomic,...
阅读全文

浙公网安备 33010602011771号