0
私はIBで作成したビューを持っています。私は自分のリソースフォルダにグラフィックファイルを持っています。私はグラフィック(xとy)のグラフィック(それはグリッドを作るでしょう)と繰り返してビューを塗り潰そうとしています。objective-cパターンでビューを埋めてください
-(void) awakeFromNib {
//set background patterns using, loading it through NSImage
[[NSColor colorWithPatternImage:[NSImage imageNamed:@"ts_bg_pattern.png"]] set];
NSRect splashFrame = [splashScreen frame];
//fill view with background pattern
[NSBezierPath fillRect:[splashScreen bounds]];
sleep(5);
if (splashFrame.origin.x == 0) {
[[splashScreen animator] setFrame:NSMakeRect(-1123.0, 0.0, 212.0, 612.0)];
}
}
これはコンパイルが、何もしません:
は、ここに私のコードです。私はかなり私のエラーがNSBezierPathであると確信しています。どんな助けもありがとう。
ありがとうございます。 – PruitIgoe