Learn iPhone and iPad cocos2d Game Development
在 .m 文件中
static MyManager *sharedManager = nil; +(MyManager*) sharedManager
{
if (sharedManager == nil)
{
sharedManager = [[MyManager alloc] init];
}
return sharedManager;
}
-
轉載請注明來自:http://blog.csdn.net/prevention