0

这是我在按钮操作中的代码。我想让我的 AlertView 对我的页面透明。怎么做?

请帮我完成我的任务......

    alert=[[UIAlertView alloc]initWithTitle:@"error" message:@"qwwqreqrgvsdfhbsb" delegate:self cancelButtonTitle:@"dismiss"otherButtonTitles:Nil, nil];

    [alert show];

    UILabel *theTitle = [alert valueForKey:@"_titleLabel"];
    [theTitle setTextColor:[UIColor redColor]];

    UILabel *theBody = [ alert valueForKey:@"_bodyTextLabel"];
    [theBody setTextColor:[UIColor redColor]];
4

1 回答 1

0

设置背景。

[alert setDimsBackground:NO];
于 2012-09-06T08:40:19.247 回答