Fork me on GitHub

2012年5月19日

摘要: 满足正式协议 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 阅读(524) 评论(0) 推荐(0)

导航