0

background image広告が表示されるまで、広告の読み込み中に設定する方法を知りたいです。

AdMob = [[GADBannerView alloc]init];
AdMob.frame = CGRectMake(0, 0 , GAD_SIZE_300x250.width, GAD_SIZE_300x250.height);
AdMob.backgroundColor = [UIColor grayColor];
AdMob.adUnitID = [GlobalVariable sharedInstance].PID_IOS_PHONE;
AdMob.rootViewController = self;
GADRequest *request = [GADRequest request];
[AdMob loadRequest:request];
4

1 に答える 1

3

次のコードを使用して、画像を背景として設定できます:-

AdMob.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"Background.png"]];
于 2013-05-20T10:33:27.197 に答える