Я инициализацией UIActionSheet, и я хотел бы, чтобы заполнить его «otherButtonTitles» из массива, Set, или что-то, как этотiphone - инициализация UIActionSheet с массивом кнопок
UIActionSheet* aSheet = [[UIActionSheet alloc] initWithTitle:"hi There"
delegate:self
cancelButtonTitle:nil
destructiveButtonTitle:nil
otherButtonTitles:[mySetOfStringsOrWhatever allObjects], nil];
это возможно?
(я пробовал это, но Xcode не нравится)
заранее спасибо.
что делает Xcode сказать об этом? –
жалуется, что ожидает NSString, а не массив или набор. – SpaceDog
Возможный дубликат [Создать UIActionSheet «otherButtons» путем передачи в массиве, а не varlist] (http://stackoverflow.com/questions/2384044/create-uiactionsheet-otherbuttons-by-passing-in-array-not-varlist) – Caleb