6.4 Unregelmäßige Pfade

Wir werden den Pfad für den Strich des Ausrufezeichens so verändern, dass er spitz nach unten zuläuft. Der eigentliche Zweck aber ist, deutlich zu zeigen, dass er nicht auf einem Rechteck basiert:

image with no caption
Drawing/Bezier6/Classes/BezierView.m

-(UIBezierPath *) top {
    UIBezierPath *path = [UIBezierPath bezierPath];
    [path moveToPoint:CGPointMake(-30, -70)];
    [path addLineToPoint:CGPointMake(30, -70)];
    [path addLineToPoint:CGPointMake(5, 70)];
    [path addLineToPoint:CGPointMake(-5, 70)];
    [path closePath];
    return path;
}

Sie haben bereits gesehen, wie man Pfade auf Basis anderer Pfade erstellt und wie man Pfade aus Linien und Kurven aufbaut. ...

Get iPad-Programmierung now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.