i have this code in bezier.m
for(int x = 0; x < [globalArray count]; ++x){
NSInteger numOfCurves = [globalArray[x] count];
UIBezierPath *linesegment = [UIBezierPath bezierPath];
for(int y=0; y< numOfCurves; y++){
[UIBezierPath makeControlPoints:globalArray[x]];
[UIBezierPath makeAnchorPoints:globalArray[x]];
linesegment = [UIBezierPath makeTheCurve:globalArray[x]];
}
strPaths = [NSString stringWithFormat:@"%@", linesegment];
NSLog(@"log %@", strPaths);
linesegment.lineWidth = [[self.linesWidth objectAtIndex:x] floatValue];
[[UIColor blackColor] setStroke];
linesegment.lineCapStyle = kCGLineCapRound;
[linesegment stroke];
}
I need to get the value of "strPaths" past to viewcontroller.m which is the output is below
log <UIBezierPath: 0x7fd50147ff30; <MoveTo {201, 130.5}>,
<CurveTo {167.25000023841858, 130.6666666418314} {188.66666698455811, 130.33333332836628} {176.33333396911621, 130.16666665673256}>,
<CurveTo {145.83333325386047, 134.75} {158.16666650772095, 131.16666662693024} {152.33333301544189, 132.33333325386047}>,
<CurveTo {129.25000017881393, 146} {139.33333349227905, 137.16666674613953}
log <UIBezierPath: 0x7fd50147ff30; <MoveTo {201, 130.5}>,
<CurveTo {167.25000023841858, 130.6666666418314} {188.66666698455811, 130.33333332836628} {176.33333396911621, 130.16666665673256}>,
<CurveTo {145.83333325386047, 134.75} {158.16666650772095, 131.16666662693024} {152.33333301544189, 132.33333325386047}>,
<CurveTo {129.25000017881393, 146} {139.33333349227905, 137.16666674613953}
and so on....