Adding Images to UIActionSheet buttons as in UIDocumentInteractionController
问题 Is it possible to add an image to the buttons of the UIActionSheet as seen in UIDocumentInteractionController ? If so, please let me know how it is done. 回答1: Try this way, i hope it may be help you. UIActionSheet * action = [[UIActionSheet alloc] initWithTitle:@"Title" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"",nil]; [[[action valueForKey:@"_buttons"] objectAtIndex:0] setImage:[UIImage imageNamed:@"yourImage.png"] forState:UIControlStateNormal]