reclaimResources
ガベージコレクションを実行します
解説
ガベージコレクションを実行します。
長らく使っていないキャッシュを整理する。
システムはレンダリングの後自動的に呼び出します。
返り値
( void )
なし
引数
フレームワーク
QuartzCore
クラス
CIContext
Instance Methods
使用可能
10.4
参照
例文
CIContext* ciContext = [CIContext contextWithCGContext:(CGContextRef)[[NSGraphicsContext currentContext] graphicsPort] options:nil]; //宛先矩形を計算 CGSize imageSize = CGSizeMake(100, 100); CGLayerRef myLayerRef = [ciContext createCGLayerWithSize:imageSize info:nil]; [ciContext reclaimResources]; printf("-------------------------------------\n"); CFShow(myLayerRef); printf("-------------------------------------\n");