【发布时间】:2012-04-26 07:00:32
【问题描述】:
您好,如何实现多个自定义按钮的代码警报消息代码以及如何为警报消息设置背景自定义图像,因此请为我在 iphone 中的请求提供指导。
【问题讨论】:
您好,如何实现多个自定义按钮的代码警报消息代码以及如何为警报消息设置背景自定义图像,因此请为我在 iphone 中的请求提供指导。
【问题讨论】:
我会像这样自己去,
UIView *myAlertView = [[UIView alloc] initWithFrame:CGRectMake(50.0, 190.0, 110.0, 100.0)];
myAlertView.backgroundColor=[UIColor clearColor];
[self.view addSubview:myAlertView];
UIImageView *imgAlertBack = [[UIImageView alloc] initWithFrame:myAlertView.frame];
imgAlertBack.image = [UIImage imageNamed:@"AlertBackgroundImageWithNiceCurves.png"];
[myAlertView addSubview:imgAlertBack];
[myAlertView addSubview:<add your buttons>];
【讨论】: