iphone - Drawing a solid line in a UITableViewCell -
I do not know anything about graphics or drawing, so I think this is the reason I do not understand That solve it.
DrawRect of my UITableViewCell which I have found in
- drawRect: (CGRect) rect {[super drawRect: rect]; CGContextRef ctx = UIGraphicsGetCurrentContext (); CGContextSetRGBStrokeColor (CTX, 0.0, 0.0, 0.0, 1.0); CGContextSetLineWidth (CTX, 0.25); (Int i = 0; i & lt; [calculation of column]; i ++) {CGFLOTF = [((NSNumber *) [column objectTitx: I]) float value]; CGContextMoveToPoint (CTX, F., 0); CGContextAddLineToPoint (ctx, f, self.bounds.size.height); } CGContextStrokePath (ctx); }
I think it should draw a black line, but the line is graying, inserting whatever is in the background I would like to draw a solid line from the background image is not impressed? I have tried to think of all the mixing modes, probably will not be similar to a mixing mode, because I do not want any blending, but all the lines that blend in some way with the background
You can try closing antialiasing. Also, 0.25 looks like a very thin line, setting it to 1.0 allows you to get what you want.
Comments
Post a Comment