BOOL
showSquare
等しいを変更するボタンがありますYES
これはボタンのコードです
- (IBAction)Tap_Square:(id)sender {
[graphicsView setNeedsDisplay];
[graphicsView setShowSquare:YES];
}
これが if ステートメントの場所です
if (showSquare) {
CGContextSetFillColorWithColor(context, white);
CGContextFillRect(context, CGRectMake(90, 90, 100, 100));
}
私は何か間違ったことをしていますか?
ありがとう