UIAlert ビルダーがあり、タイトルとボタンの間に画像を追加したいと考えています。これは私のコードです:
UIAlertView *pull = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"pull_wire", nil)
message:nil
delegate:nil
cancelButtonTitle:NSLocalizedString(@"continue_text", nil)
otherButtonTitles:nil];
UIImageView *imageView = [[UIImageView alloc] initWithImage: [UIImage imageNamed: @"cable.png"]];
[pull addSubview:imageView];
[pull show];
ただし、画像は UIAlertView の上に表示されます。
@yunas ソリューションを使用:
画像が大きすぎるのではないでしょうか?
画像のサイズ変更:
どうすればUIAlert内で取得できますか?