ios - how to join line with round corder -


I have three points, code A, B and C, the code to link the following points

  // Override Direct: If you do a custom drawing // An empty implementation adversely affects performance during animation - (zero) direct: (CGRact) rect {// drawing code CGCTXTIF reference = UigrexgateCertact Contact (); NSArray * points = @ [[NSValue valueWithCGPoint: CGPointMake (10.0f, 15.0f)], [NSV Value Videocon's Point: CGPWantmec (100.0F, 170.0F)], [NSW Value VCTGNT: CGPWantmec (190.0F, 100.0F)], ]; CGContextSetStrokeColorWithColor (Reference, [UIColor redColor] .CGColor); CGContextSetLineWidth (Reference, 2.0F); CGContextSetLineJoin (reference, KCGLineJoinRound); CGContextSetLineCap (Reference, KCG LyncapRound); For (int i = 0; i   

Enter image details here

However, the junction of the two rows is an angle, I should be in point B. with a rounded cedar. Like the following image:

Enter image details here

How to do

You have 2 straight lines, which are asking for you (possibly 2 Try using

or CGPathAddCurveToPoint or CGPathAddQuadCurveToPoint .

/ P>

Comments

Popular posts from this blog

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

Simple file compression in C -

php - Sorting an multidimension array using usort fails -