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