0

UIViewの背景画像を

[self.view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"mainScreenBackground" ofType:@"png"]]]];

6MBのメモリが必要です。メモリを節約する別の方法が必要です。

4

1 に答える 1

0
self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"image.png"]];

これは機能しますか?

于 2012-04-27T09:31:47.947 に答える