03 2009 档案
摘要:NSArray *views = [tabBarController.view subviews]; for(id v in views){ if([v isKindOfClass:[UITabBar class]]){ [(UITabBar *)v setHidden:YES]; } }
阅读全文
摘要:http://www.engadget.com/2009/03/17/live-from-apples-iphone-os-3-0-preview-event/ 10:10AM 1000 new APIs. 10:09AM "Let me tell you what we're doing for developers. Our goal was to make devs succes...
阅读全文
摘要:The following is a simple method that will convert a hexadecimal color (e.g. #FFCC88) into an equivalent UIColor object. - (UIColor *) colorForHex:(NSString *)hexColor { hexColor = [[hexColor stringBy...
阅读全文
摘要:大致的需求就是, 浏览文件夹,以及文件,然后选取文件后,返回给调用窗口,进行进一步处理。 使用方式: fileSelector= new FileSelector(this); //this 为MIDlet fileSelector.sender = invoker; //invoker 为自定义的Canvas Display.getDisplay(this).setCur...
阅读全文
摘要:UIGraphicsBeginImageContext(myView.bounds.size); [myView.layer renderInContext:UIGraphic...
阅读全文
摘要:想必大家都会有这个需求,如何管理物体对象? 用 STD::Vector 吗? 在object c 中我们可以如下操作。 //Initialize the Array spriteArray = [[NSMutableArray alloc] init]; //保存对象. //Add mySprite to the array [spriteArray addObject:[NSVa...
阅读全文