摘要:
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... 阅读全文
posted @ 2009-03-11 20:00
小糊涂的超级blog
阅读(706)
评论(0)
推荐(0)
摘要:
大致的需求就是, 浏览文件夹,以及文件,然后选取文件后,返回给调用窗口,进行进一步处理。 使用方式: fileSelector= new FileSelector(this); //this 为MIDlet fileSelector.sender = invoker; //invoker 为自定义的Canvas Display.getDisplay(this).setCur... 阅读全文
posted @ 2009-03-08 21:58
小糊涂的超级blog
阅读(753)
评论(0)
推荐(0)
摘要:
UIGraphicsBeginImageContext(myView.bounds.size); [myView.layer renderInContext:UIGraphic... 阅读全文
posted @ 2009-03-07 16:11
小糊涂的超级blog
阅读(386)
评论(0)
推荐(0)
摘要:
想必大家都会有这个需求,如何管理物体对象? 用 STD::Vector 吗? 在object c 中我们可以如下操作。 //Initialize the Array spriteArray = [[NSMutableArray alloc] init]; //保存对象. //Add mySprite to the array [spriteArray addObject:[NSVa... 阅读全文
posted @ 2009-03-07 15:38
小糊涂的超级blog
阅读(370)
评论(0)
推荐(0)
浙公网安备 33010602011771号