上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页
摘要: c语言中求数组的长度很贱double percentArray[3];sizeof(percentArray)/sizeof(double) //3sizeof(percentArray) //24 阅读全文
posted @ 2012-08-06 14:42 zander 阅读(271) 评论(0) 推荐(0)
摘要: CGContextFillPath(ctx);//设置填充的路径 //CGContextFillPath 路径的填充则可以用CGContextFillPath 函数来实现,它的功能是用当前的填充颜色或样式填充路径线段包围的区域。 阅读全文
posted @ 2012-08-06 14:11 zander 阅读(2283) 评论(0) 推荐(0)
摘要: 填充颜色void CGContextSetRGBFillColor ( CGContextRef c, //当前上下文 CGFloat red,//r CGFloat green,//g CGFloat blue,//b CGFloat alpha//要注意的是这个是透明度oo); 阅读全文
posted @ 2012-08-06 10:46 zander 阅读(2966) 评论(0) 推荐(0)
摘要: CGContextAddArc(Context, CGFloat x , CGFloat y, CGFloat radius, CGFloat startAngle , CGFloat endAngle, int clockwise);关于角度,由x,y可确定圆心坐标,而0,0角度位于圆心的正下方。startAngle是由0,0偏移的。偏移方向是由clockwise控制的,0为顺时针,1为逆时针。 阅读全文
posted @ 2012-08-06 10:43 zander 阅读(1134) 评论(0) 推荐(0)
摘要: 1. CoreGraphics.framework -- 绘图的框架就是打开上下文的那种2.iAd.framework -- 广告的框架 (ADBanner ok )....3.AVFoundation.framework -- 播放声音文件或者内存中的声音的框架 阅读全文
posted @ 2012-08-06 10:19 zander 阅读(200) 评论(0) 推荐(0)
摘要: 在ios开发中遇到数据最好采用c语言中的数组存储因为objective-c中的数组只能存放对象 基本数据类型要转化成对象NSNumber 可能精度有失 阅读全文
posted @ 2012-08-04 17:51 zander 阅读(491) 评论(0) 推荐(0)
摘要: -(void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView{ if(scrollView.tag=2){ //local declaration of scrollViewhides instance variable pageControlForReport.currentPage = scrollView.contentOffset.x / 320.0;//local declaration of scrollViewhides instance variable return; }else { re... 阅读全文
posted @ 2012-08-03 14:14 zander 阅读(2783) 评论(0) 推荐(0)
摘要: CGContextAddArc(ctx, center.x, center.y, redius, startAngle,endAngle , fangxiang);ctx图形上下文。x:在用户空间坐标,绘制弧的圆心的x坐标y:在用户空间坐标,绘制弧的圆心的y坐标redius:圆弧半径。startAngle角度到起点弧,用弧度,从积极的轴。endAngle角度的终点弧,用弧度,从积极的轴。fangxiang:顺时针指定1来创建一个顺时针旋转电弧或0到创建一个逆时针方向旋转电弧。 阅读全文
posted @ 2012-08-02 15:40 zander 阅读(249) 评论(0) 推荐(0)
摘要: CGContextBeginPath 函数配置一个接收路径命令的图形上下文。调用该函数之后,就可以使用与路径相关的函数来设置路径的起始点,描画直线和曲线,加入矩形和椭圆形等等。路径的几何形状指定完成后,就可以直接进行描画 阅读全文
posted @ 2012-08-02 15:15 zander 阅读(741) 评论(0) 推荐(0)
摘要: //将当前的手机屏幕上的视图控件的view拍照 并保存到手的album中- (IBAction) camera { UIAlertView *alert = [[UIAlertViewalloc]initWithTitle:@"Image Saved" message:[NSStringstringWithFormat:@"This Chart has been saved to your Photo album. You can view, email and print the Chart using the Apple Photo... 阅读全文
posted @ 2012-08-02 14:44 zander 阅读(271) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页