I’m working on a project where I want to show UIActionsheet with three “Change”, “Cancel” and “Finish” buttons, and in the place of the name I want to put a UIView with several shortcuts. I created a dynamic UIView, and I added it to the action table, but it was hiding behind the buttons, I tried it in all possible ways with setFrame, limits, but I can not find a solution. I want to place this UIView at the top of the UIA table, and then the buttons. If you have any doubts, feel free to leave comments.
Here is my code:
-(IBAction)tapbutton:(id)sender
{
Lablesubview *view = [[Lablesubview alloc]init];
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:nil
delegate:self
cancelButtonTitle:@"Cancel"
destructiveButtonTitle:@"Change"
otherButtonTitles:@"Done",nil];
[actionSheet addSubview:view];
[actionSheet showInView:self.view];
}
iMash source
share