UIViewで、CoreGraphicsで、長方形を書く
- (void)drawRect:(CGRect)rect { CGContextRef dst_cgcontext = UIGraphicsGetCurrentContext(); CGContextSetRGBStrokeColor( dst_cgcontext, 0xff,0xff,0xff,0xff); // color CGRect rect2 = CGRectMake( x ,y ,w, h); CGContextStrokeRect( dst_cgcontext ,rect2);