我有一个uiactionsheet,如下所示:
UIActionSheet *sheet = [[UIActionSheet alloc] initWithTitle:[NSString stringWithFormat: @"Cancel New %@? Changes will be lost.", [creator propertyName]] delegate:self cancelButtonTitle:@"Stay Here" destructiveButtonTitle:@"Discard and Close" otherButtonTitles:@"Save and Close", nil];
[sheet showInView:self.view];
[sheet release];
创建动作单,按钮显示,破坏性按钮在顶部,取消按钮在底部,其他按钮(保存和关闭)显示在中间。
顶部两个按钮(破坏性按钮和其他按钮)工作正常,但底部按钮有一个间隙,因此它比其他按钮向下更远。但出于某种原因,为了按下按钮,如果没有间隙,我需要触摸它的位置。触摸实际按钮不起作用。
对不起,如果这不是很清楚,有人遇到过这样的事情吗?我不喜欢把“我发现了一个虫子”卡片抽得太快,也许我在这里做错了什么。