【问题标题】:Customise Pop Over AlertView自定义弹出框警报视图
【发布时间】:2012-09-06 05:54:08
【问题描述】:

我们可以编辑PopOverAlert.... 是否可以自定义UIAlertView。我也想让UIAlertView 透明。

【问题讨论】:

  • 您究竟需要哪种类型的警报视图?
  • alertview 可以显示背景页面。也就是 AlertView 必须是透明的
  • 表示alertview的设计是因为它只是你需要透明的alertview。对吗?
  • 是的,你检查过我回答的第一个 tutsplus 链接吗?
  • 实际上我已经在按钮操作中完成了这个编码..** alert=[[UIAlertView alloc]initWithTitle:@"error" message:@"qwwqreqrgvsdfhbsb" delegate:self cancelButtonTitle:@"dismiss"其他按钮标题:无,无]; [警报显示]; UILabel *theTitle = [alert valueForKey:@"_titleLabel"]; [theTitle setTextColor:[UIColor redColor]]; UILabel *theBody = [警报 valueForKey:@"_bodyTextLabel"]; [theBody setTextColor:[UIColor redColor]]; **现在我想知道使警报视图透明的代码是什么?

标签: iphone ios xcode4


【解决方案1】:

是的,您可以自定义 UIAlertView ... 取决于您实际想要做什么... 使用这些链接 Changing the background color of a UIAlertView?how can I have a totally transparent UIAlertView?

【讨论】:

  • 但是这些链接不能满足我。我想让我的警报视图透明。有可能吗?任何人都可以指定我的任何代码。
  • @goku 不要制作 UIAlertView ... 制作 UIView ,并使用动画对其进行自定义,使其看起来像 UIAlertView ...
【解决方案2】:
猜你喜欢
  • 1970-01-01
  • 2012-10-31
  • 2017-11-16
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-05-14
  • 2011-02-05
相关资源
最近更新 更多