restoreGraphicsState
グラフィックコンテキストを元に戻します
解説
グラフィックコンテキストを元に戻します。
例文
#import "Controller.h" @implementation Controller - (IBAction)pushButton:(id)sender { if ([NSGraphicsContext currentContextDrawingToScreen]){ NSLog(@"YES"); }else{ NSLog(@"NO"); } [NSGraphicsContext restoreGraphicsState]; } @end