Iphone 自定义UIAlertView的步骤
这是我在按钮操作中的代码。我想使我的AlertView对我的页面透明。如何做到这一点 请帮我完成我的任务Iphone 自定义UIAlertView的步骤,iphone,xcode,uialertview,Iphone,Xcode,Uialertview,这是我在按钮操作中的代码。我想使我的AlertView对我的页面透明。如何做到这一点 请帮我完成我的任务 alert=[[UIAlertView alloc]initWithTitle:@"error" message:@"qwwqreqrgvsdfhbsb" delegate:self cancelButtonTitle:@"dismiss"otherButtonTitles:Nil, nil]; [alert show]; UILabel *theTitle =
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]];
设置背景
[alert setDimsBackground:NO];
这个问题有什么问题?