Вы можете получить исходный код из этого link
и изменить свойство линии, как изменение ширины линии , цвет и т. д. перейдите в EC189DrawingViewController в этом исходном коде и отредактируйте его в следующем разделе
- (void)drawShapes {
//NSLog(@"In drawShapes!");
UIGraphicsBeginImageContext(_drawingPad.frame.size);
CGContextRef context = UIGraphicsGetCurrentContext();
for(myShape *i in _collection) {
[self drawShapesSubroutine:i contextRef:context];
if(i.selected == true) {
CGContextSetLineWidth(context, 1.0f);
CGContextSetStrokeColorWithColor(context, [[UIColor darkGrayColor] CGColor]);
float num[] = {6.0, 6.0};
CGContextSetLineDash(context, 0.0, num, 2);
CGRect rectangle;
[self drawShapeSelector:i selectorRect: &rectangle];
CGContextAddRect(context, rectangle);
CGContextStrokePath(context);
//tapped = true;
}
}
if(!skipDrawingCurrentShape && (selectedIndex == -1)) {
[self drawShapesSubroutine:_currentShape contextRef:context];
}
_drawingPad.image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
}
Спасибо ... ..... я счастлив :) – Rushabh
@ Rocks Oh .. then thanks ... Happy Coding;} – Dany