0

I am using actionsheet, and I have added unicode symbol. But my button title is not centered. I want the unicode symbol to be located at right most. If you think that it is impossible, can I use flag image separately rather than using unicode symbol ? If yes, how could I add image next to the button title?

UIActionSheet *actionsheet = [[UIActionSheet alloc] initWithTitle:@"Would you like to see ozone cloud in your area or a trace of your walking/driving/biking activity" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"OzoneMap",@"ParticleMap", @"TraceMap      \U0001F6A9", nil];

[[[actionsheet valueForKey:@"_buttons"] objectAtIndex:0] setImage:[UIImage imageNamed:@"play2.png"] forState:UIControlStateNormal];

enter image description here

casillas
  • 16,351
  • 19
  • 115
  • 215

0 Answers0