I want to add image with some text into UIAlertView like given image below
Here is my code
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];
But image is not showing inside alertview. Your help will be appreciable. Thanks
It is emoji. You can find the entire unicode of emoji's here: Emoji Unicode
You can use the unicode of corresponding image to show that in your alert like:
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Midhun" message:@"\xE2\x9C\x88" delegate:nil cancelButtonTitle:@"ok" otherButtonTitles: nil];
[alert show];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With