How can I create a Customize Alert View in iOS with Radio Buttons on it like this one in android (what i want is in iOS).
I search for a while and cannot find any way to do it so I ask here.
How can I create a Customize Alert View in iOS with Radio Buttons on it like this one in android (what i want is in iOS).
I search for a while and cannot find any way to do it so I ask here.
I would suggest you to use a modal view or try adding a subview to achieve this, DO NOT use UIAlertView to do this. I did the same iOS 7 UIDatePicker in UIAlertView customisation but it stopped working from iOS 7.
Action Sheet sample code:
UIActionSheet *actionSheet = [[UIActionSheet alloc]
initWithTitle:@"Select State"
delegate:self
cancelButtonTitle:@"Cancel"
destructiveButtonTitle:nil
otherButtonTitles:@"State 1",@"State 2",@"State 3",@"State 4",@"State 5",@"State 6", @"State 1",@"State 2",@"State 3",@"State 4",@"State 5",@"State 6",@"State 1",@"State 2",@"State 3",@"State 4",@"State 5",@"State 6", nil];
actionSheet.actionSheetStyle = UIActionSheetStyleDefault;
[actionSheet showInView:self.view];