One Button ActionSheet with ios 8
In my application, I found the action table is not displaying correctly, so I create a new demo project with one view and one button per button action. I have a post code like
-(IBAction)testActionsheet:(id)sender{
UIActionSheet *objAction=[[UIActionSheet alloc] initWithTitle:nil delegate:nil cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"ActionSheet issue",nil];
[objAction showFromRect:CGRectMake(300, 500, 90, 9) inView:self.view
animated:YES];
}
but showing some cut from the top side ... anyone have a solution for this, with an action table?
+3
source to share
1 answer
UIActionSheet is deprecated in iOS 8. view this link UIActionSheet is deprecated in iOS 8
you can use UIAlertController instead of action sheet
0
source to share