Paresh Masani
Paresh Masani

Reputation: 7504

iPhone: Customizing group table cell border style

I have customized group table cell background where I am using following code to draw table cell border. The border appears correct but it always appear solid line. Is there anyway to make it etched/dotted line? What do I need to modify in following code?

 -(void)drawRect:(CGRect)rect {
    CGContextRef c = UIGraphicsGetCurrentContext();
    CGContextSetStrokeColorWithColor(c, [borderColor CGColor]);
    CGContextSetLineWidth(c, 2);
    .....

Thanks.

Upvotes: 0

Views: 425

Answers (1)

jrturton
jrturton

Reputation: 119292

See CGContextSetLineDash here. This allows you to set a variety of dash patterns.

Upvotes: 1

Related Questions