I have an image view,on that there are programmatically created UIButtons
. I want to delete these buttons through an UIActionSheet
. is this possible in an iPad? Please help me out.
问问题
617 次
2 回答
0
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
使用这些操作表委托方法,您可以删除以编程方式创建的按钮,例如:
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
{
switch(buttonIndex)
{
case 0:
[button removefromsuperview];
}
}
于 2013-10-07T07:10:04.793 回答