I need to add image in Action sheet item using UIAlertController
. I add using:
UIImage *image = [UIImage imageNamed:@"icon.png"];
[alertAction setValue:image forKey:@"image"];
And results as:
The problem is that:
I need the image & text to be centrally aligned and resize the height of Cancel button
How can i do that, please share some code.
Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…