Fork me on GitHub

随笔分类 -  objective-c

objective-处委托协议
摘要:满足正式协议 protocol 的委托只能执行协议中的方法,#import <Foundation/Foundation.h>@protocol GameBoardControllerDelegate <NSObject>@optional- (NSInteger)getColumns;- (NSInteger)getRows;@end#import "cocos2d.h"#import "GameBoardControllerDelegate.h" //MVC中的C@class GameBoard;@class GameBoar 阅读全文

posted @ 2012-05-19 18:30 pengyingh 阅读(519) 评论(0) 推荐(0)

导航