IOS Cocos2d Get CCSpriteFrame from Cache

/* Get Frame from Cache  */
+ (CCSpriteFrame*) getFrameFromCache:(NSString*) plistfile image:(NSString*) frameName {
   
    [[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:plistfile];       
   
    return [[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:frameName];
}

Comments

Popular posts from this blog

Java : Variables Declaring

Install DNF in RHEL/CentOS 7

SQL Self JOIN