草庐IT

SLElement

全部标签

ios - 可以使用 SLButton 或 SLElement 关闭弹出窗口中显示的 UIActionSheet 吗?

我试过:SLButton*actionSheetButton=[SLButtonelementWithAccessibilityLabel:@"Remove"];//alsotriedsamewithSLElementBOOLpopoverDisplayed=SLWaitUntilTrue([UIAElement(actionSheetButton)isValidAndVisible],3.0);if(popoverDisplayed){[UIAElement(actionSheetButton)tap];}我能够使用SLPopover关闭/取消操作表,但我想测试按钮操作。谢谢。编辑: