Vous pourriez tirer parti de Propriétés d'exécution pour définir la police. En utilisant NSAttributedString
, vous pouvez y parvenir.
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil
otherButtonTitles:@"copy all ",nil];
//Creating Attributed String with System Font size of 30.0f
NSAttributedString *attrString = [[NSAttributedString alloc] initWithString:@"Select option to copy:" attributes:@{NSFontAttributeName: [UIFont systemFontOfSize:30.0f]}];
//Accessing the Alert View Controller property from Action Sheet
UIAlertController *alertController = [actionSheet valueForKey:@"_alertController"];
//Setting Attributed Title property of Alert View Controller
[alertController setValue:attrString forKey:@"_attributedTitle"];
//Displaying the Action Sheet
[actionSheet showInView:self.view];
Qu'avez-vous essayé? Comment créez-vous cette feuille d'action? Montrez-nous du code;) – KerrM