1
Je le code suivant que je placé dans un UIViewController:ne peut pas tirer bezierPath
- (void)drawRect:(CGRect)rect {
UIBezierPath *trackPath = [UIBezierPath bezierPath];
[trackPath addQuadCurveToPoint:CGPointMake(10, 30) controlPoint:CGPointMake(0, 0)];
trackPath.lineWidth = 2;
[trackPath fill];
[trackPath stroke];
}
Cependant, je ne vois pas le chemin. Qu'est-ce que je fais mal?
Êtes-vous sûr à 100% que drawRect est appelé? – jsd
Votre AVC/contexte est-il blanc? – CodaFi
En réalité drawRect n'est pas appelé, pas sûr pourquoi – adit