ActionSheetのUIImageViewで現在の警告をUIAlertController
にしたいと思います。私はそれが終了のそのアプリケーションを実行する際には....UIIlertControllerでUIImageViewを追加するには?
これは私のコードです:
UIAlertController * alert= [UIAlertController
alertControllerWithTitle:@"Title"
message:@"Welcome"
preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction* okButton = [UIAlertAction
actionWithTitle:OK
style:UIAlertActionStyleDefault
handler:^(UIAlertAction * action)
{
}];
[alert addAction:okButton];
UIImageView *imgv=[[UIImageView alloc]initWithFrame:CGRectMake(20,20,50,50)];
imgv.image=[UIImage imageNamed:@"kaga.jpg"];
[alert setValue:imgv forKey:@"image"];
[self presentViewController:alert animated:YES completion:nil];
それはあなたを助けたら、これを見るhttp://stackoverflow.com/questions/32059305/add-image-to-uialertcontroller問題は、あなたが今直面いただきまし –