我正在向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];
22到23之间的重叠线。
什么是问题?