【发布时间】:2011-01-11 10:31:30
【问题描述】:
哪些步骤会重现问题? 1.√ [adWhirlView replaceBannerViewWith:replacement];
预期的输出是什么?你看到了什么?
使用 UILabel 在 replaceBanner 上执行错误访问,如示例中指定的那样,当我添加自定义横幅视图时它也会崩溃
您使用的是什么版本的产品?在什么操作系统上?
Mac OX 10.6.3 和 AdWhirlSDK_iPhone_2.6.2.zip
请在下面提供任何其他信息。
每当我将我的自定义添加集成到 Adwhirl 中时,我的应用程序就会崩溃 [adWhirlView replaceBannerViewWith:replacement];请告诉我如何解决这个问题。
- (void)performEvent:(AdWhirlView *)adWhirlView {
// replace banner content
UILabel *replacement = [[UILabel alloc] initWithFrame:kAdWhirlViewDefaultFrame];
replacement.backgroundColor = [UIColor blackColor];
replacement.textColor = [UIColor whiteColor];
replacement.textAlignment = UITextAlignmentCenter;
replacement.text = [NSString stringWithFormat:@"Event performed, view %x", adWhirlView];
[adWhirlView replaceBannerViewWith:replacement];
[replacement release];
}
【问题讨论】:
标签: iphone objective-c iphone-sdk-3.0 ios4