Although the API is missing, this is a simple property that you can change.
You can access each UIButton image as follows:
SEL buttonsSEL = @selector(buttons);
if([yourUIActionSheet respondsToSelector:buttonsSEL]) {
NSString *buttonsSel = NSStringFromSelector(buttonsSEL);
[[[yourUIActionSheet valueForKey:buttonsSel objectAtIndex:yourIndex]
setImage:[UIImage imageNamed:@"yourImage.png"]
forState:UIControlStateNormal];
...
}
Where
- yourUIActionSheet is a UIActionSheet * table
- yourIndex is an int representing the index of the button, starting at 0
source
share