欢迎各位童鞋转载,转载请注明出处:http://blog.csdn.net/song_hui_xiang
作者新浪微博:http://weibo.com/u/3168848533
作者腾讯微博:http://t.qq.com/song_huixiang
local spriteNormal = CCSprite:create(s_MenuItem, CCRectMake(0,23*2,115,23)) local spriteSelected = CCSprite:create(s_MenuItem, CCRectMake(0,23*1,115,23)) local spriteDisabled = CCSprite:create(s_MenuItem, CCRectMake(0,23*0,115,23))
local man = CCSprite:create("man.png") man:setTextureRect(CCRectMake(0,0,50,50))