摘要: 1 - (void)drawRect:(CGRect)rect 2 { 3 // Drawing code 4 [super drawRect:rect]; 5 for(int i=0;iself.frame.size.width)30 continue;31 CGContextAddLineToPoint(rf, j*10,self.frame.size.height);32 CGContextStrokePath(rf);33 }34 }创建一个继承自UIView的类 里面会有- (void)draw... 阅读全文
posted @ 2013-09-03 21:02 秋等不到夏 阅读(268) 评论(0) 推荐(0)