背景に繰り返しのイメージを使う
どうやらこんな感じで出来るらしいんですが……。
CGRect bounds = [[UIScreen mainScreen] applicationFrame]; UIView *view = [[[UIView alloc] initWithFrame:bounds] autorelease]; [view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"transparent.png"]]]; [view setOpaque:NO]; [self.view addSubView:view];
何故か私のところだと透過しないんですよね。 なんでだろ?
ちなみにsetOpaqueってのはその画面を不透過にするか、って言う設定です。
なので、透過部分のあるイメージを繰り返したい場合などはNOに設定します。