I am new in ios. I am using Action sheet in my project.I want to ask that what can i do in order to add four buttons in UIaction sheet.
(IBAction)showNormalActionSheet:(id)sender {
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@""?"
delegate:self
cancelButtonTitle:@"Cancel"
destructiveButtonTitle:@"Delete it"
otherButtonTitles:@"Copy", @"Move", @"Duplicate", nil];
[actionSheet showInView:self.view];
}
UIActionsheet has been deprecated and is no longer working in iOS8. UIActionsheet will be replaced by UIAlertController. Your issue might be due to this update UIAlertController Apple documentation
UIAlertController gives you full power to customize your AlertView. If you have an app in app store that is using UIAlertView, your app will be broken in iOS 8.
How to use UIAlertController check this demo on Github AlertViewController for iOS8 Demo
A library for custom views like AlertViewController is here