小编Con*_*nus的帖子

带有许多按钮的Xcode iPad UIActionSheet无法正确显示iOS7

在iPad上,新的ios 7 UIActionSheet没有正确显示,有很多按钮.

在滚动时不清除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];
Run Code Online (Sandbox Code Playgroud)

uiactionsheet ipad ios7

15
推荐指数
1
解决办法
4705
查看次数

标签 统计

ios7 ×1

ipad ×1

uiactionsheet ×1