На iPad новый ios 7 UIActionSheet отображается неправильно с большим количеством кнопок.Xcode iPad UIActionSheet со многими кнопками не отображается правильно iOS7
Не чистка фона UIActionSheet на прокрутку. Кнопки выглядят замороженными в фоне UIActionSheet.
Мой код:
UIActionSheet *popupQuery = [[UIActionSheet alloc];
for (int i=0; i<[ParamAllList count]; i++)
{
NSMutableDictionary *Param = [ParamAllList objectAtIndex:i];
[popupQuery addButtonWithTitle:[Param valueForKey:@"name"]];
[[[popupQuery valueForKey:@"_buttons"] objectAtIndex:[[popupQuery valueForKey:@"_buttons"] count]-1] setImage:[UIImage imageNamed:@"add40icon.png"] forState:UIControlStateNormal];
}
popupQuery.actionSheetStyle = UIActionSheetStyleAutomatic;
[popupQuery showFromRect:Button_Settings.frame inView:Button_Settings.superview animated:YES];
пожалуйста, добавьте код, когда вы создаете свой UIActionSheet –
UIActionSheet * popupQuery = [[UIActionSheet Alloc]; for (int i = 0; i <[ParamAllList count]; i ++) { NSMutableDictionary * Param = [ParamAllList objectAtIndex: i]; [popupQuery addButtonWithTitle: [Параметр valueForKey: @ "name"]]; [[[popupQuery valueForKey: @ "_ buttons"] objectAtIndex: [[popupQuery valueForKey: @ "_ buttons"] count] -1] setImage: [UIImage imageNamed: @ "add40icon.png"] forState: UIControlStateNormal]; } popupQuery.actionSheetStyle = UIActionSheetStyleAutomatic; [popupQuery showFromRect: Button_Settings.frame inView: Button_Settings.superview animated: YES]; – Constantinus
Я вообще делаю то же самое без изображения: даже если я это делаю: UIActionSheet * popupQuery = [[UIActionSheet alloc] initWithTitle: @ "test" delegate: self cancelButtonTitle: @ "" destructiveButtonTitle: @ "Отменить" otherButtonTitles : @ "hi", @ "hi", @ "hi", @ "hi", @ "hi", @ "hi", @ "hi", @ "hi", @ "hi", @ "hi" , @ "hi", @ "hi", @ "hi", @ "hi", @ "hi", @ "hi", @ "hi", @ "hi", @ "hi", @ "hi" , @ "hi", @ "hi", @ "hi", @ "hi", @ "hi", nil]; Это беспорядок происходит именно так ... Что-то делать с количеством кнопок. – dan