UIActionSheet的单独行与其他行重叠

时间:2014-08-13 07:38:30

标签: iphone ios7 uiactionsheet

我正在向UIView添加100张UIActionSheet。

这是一段代码。

UIActionSheet *actionSheet = [[UIActionSheet alloc]
                              initWithTitle:@"Choose Number"
                              delegate:self
                              cancelButtonTitle:nil
                              destructiveButtonTitle:nil
                              otherButtonTitles:nil];

for (int i = 1; i <= 100; i++) {
    [actionSheet addButtonWithTitle:[NSString stringWithFormat:@"%d", i]];
}

actionSheet.cancelButtonIndex = [actionSheet addButtonWithTitle:@"Cancel"];
cancelIndex = actionSheet.cancelButtonIndex;
[actionSheet showInView:self.view];

Problem Image

22到23之间的重叠线。

什么是问题?

0 个答案:

没有答案