我有一个图像视图,其中有以编程方式创建的UIButtons
。我想通过UIActionSheet
删除这些按钮。这可能在iPad上吗?请帮帮我。
答案 0 :(得分:0)
答案 1 :(得分:0)
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
使用这些动作表委托方法,您可以删除程序化创建的按钮,例如:
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
{
switch(buttonIndex)
{
case 0:
[button removefromsuperview];
}
}