`
Keys
  • 浏览: 37913 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论
文章列表
CCSpriteBatchNode *spriteBatchNode;  //use the textureAtlas and class CCSpriteBatchNode //ipad device if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {             [[CCSpriteFrameCache sharedSpriteFrameCache] 
Reduced OpenGL ES bind calls—the more images contained in the textureatlas, the greater the reduction. Reduced memory footprint for the images stored as textures in memory. Easy method to trim and save on transparent space in your images, allowing formore images/texture in the same space ...

slider

  /*获取slider值 events:ValueChanged * *@property (strong, nonatomic) IBOutlet UILabel *numberSlider; * */ - (IBAction)sliderChanger:(id)sender {     UISlider *slider = (UISlider *)sender;      int value = (int)roundf(slider.value);      
  Control States Every iOS control has four possible control states and is always in one, and only one, of these states at any given moment:  Normal: The most common state is the normal control state, which is the default state. It’s the state that controls are in when not in any of t ...
在- (void)viewDidLoad  中: UIImage *buttonImageNormal = [UIImage imageNamed:@"whiteButton.png"]; UIImage *stretchableImage = [buttonImageNormal stretchableImageWithLeftCapWidth:12 topCapHeight:0];     [doButton setBackgroundImage:stretchableImage forState:UIControlStateNormal];     UIImage *b ...
个人学习笔记 NSString --实例化方法-------------- NSString *str = [[NSString alloc] init]; NSString *str = [[[NSString alloc] init] autorelease];   注意:在NSString 中存在自己的实例化和初始化的方法 例如: NSString *str1 = [NSString stringWithCString:"new Str ...
Global site tag (gtag.js) - Google Analytics