0
我的代碼是這樣的:
UIImage *imk= [UIImage imageWithData:imageData];
UIAlertController * alert= [UIAlertController
alertControllerWithTitle:@"Success"
message:@"Posted Successfully."
preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *Action=[[UIAlertAction alloc]init];
[Action setValue:imk forKey:@"image"];
[alert addAction:Action];
[self presentViewController:alert animated:YES completion:nil];