草庐IT

buttonIndicies

全部标签

iphone - Landscape 中的 UIActionSheet 的 buttonIndicies 不正确

我有一个操作表让我在iPhone的横向模式上感到悲伤。一切都显示得很好,但在Landscape中,第一个真正的按钮与取消按钮具有相同的索引,因此逻辑不起作用。我已经尝试使用initWithTitle:delegate:cancelButtonTitle:destructiveButtonTitle:otherButtonTitles:创建actionSheet,但那是一样的,我当前的代码如下;UIActionSheet*actionMenu=[[UIActionSheetalloc]init];actionMenu.delegate=self;actionMenu.title=fold