Skip to content

Instantly share code, notes, and snippets.

@ChristianSch
Created March 1, 2014 18:17
Show Gist options
  • Save ChristianSch/9294444 to your computer and use it in GitHub Desktop.
Save ChristianSch/9294444 to your computer and use it in GitHub Desktop.
// Startpunkt
CGPoint start = CGPointMake(100, 100);
// Endpunkt
CGPoint end = CGPointMake(100, 200);
// Quartz den Beginn eines neuen Pfades (unserer Linie) signalisieren
CGContextBeginPath(context);
// Linienanfang setzen
CGContextMoveToPoint(context, start.x, start.y);
// Linienende setzen
CGContextAddLineToPoint(context, end.x, end.y);
// Fertig mit der Pfaderstellung! Nun soll die Linie auch gezeichnet werden.
CGContextStrokePath(context);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment