我想将带有一些文本的图像添加到 UIAlertView 中,如下图所示
这是我的代码
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"" message:@"Please use Settings( ) to configure the phone number and image." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(160.5, 27, 15, 15)];
imageView.image = [UIImage imageNamed:@"settingIcon.png"];
[alert addSubview:imageView];
[alert show];
但是图像没有显示在警报视图中。您的帮助将是可观的。谢谢