解决方案 »
- 擦除效果的橡皮擦形状问题
- 关于Objective-C中所谓的分类
- phonegap如何开发iphone插件
- 怎样Post 数据到服务器呀?
- ipad上的游戏,如果这时候有facetime打过来,之后就没有声音了
- 请问如何用一张图片实现循环滚屏,cocos2dx
- nsxmlparser解析xml出错
- Button的触摸方法不用返回IBAction该怎么理解?
- iOS navgationcontroller问题
- iOS 利用model时候出现unrecognized selector sent to instance
- [NSThread isMainThread]返回值可靠吗
- ios应用,开发些什么产品,会用到socket?
CGRect rect = CGRectMake(0.0f, 0.0f, 1.0f, 1.0f);
UIGraphicsBeginImageContext(rect.size);
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetFillColorWithColor(context, [color CGColor]);
CGContextFillRect(context, rect);
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
貌似没有这样的函数。
找到方法了http://blog.csdn.net/devday/article/details/5199218