【问题标题】:how to display the alert message with multiple custom buttons and with back ground image? [closed]如何使用多个自定义按钮和背景图像显示警报消息? [关闭]
【发布时间】:2012-04-26 07:00:32
【问题描述】:

您好,如何实现多个自定义按钮的代码警报消息代码以及如何为警报消息设置背景自定义图像,因此请为我在 iphone 中的请求提供指导。

【问题讨论】:

    标签: iphone ios5


    【解决方案1】:

    我会像这样自己去,

    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>];
    

    【讨论】:

      【解决方案2】:
      猜你喜欢
      • 2020-09-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-05
      • 2014-02-21
      • 1970-01-01
      相关资源
      最近更新 更多