如何实现多个自定义按钮的代码警报消息代码以及如何为警报消息设置背景自定义图像,以便在iphone中为我的请求提供指导。
答案 0 :(得分:2)
我会这样做,
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>];
答案 1 :(得分:1)