I want to add 2 radio buttons in alert view in iOS sdk.
When I want to select First Radio Button and then i Click "ok" Button in Alert view then go to next screen(like abc.m) and when i want to select Second Radio Button then i Click "ok" Button in Alert view then go to next screen(like my.m).
UIAlertView *alertView=[[UIAlertView alloc] initWithTitle:nil message:nil delegate:self cancelButtonTitle:@"OK" otherButtonTitles:@"CANCEL",nil];
UIButton *Radiobutton = [UIButton buttonWithType:UIButtonTypeCustom];
[Radiobutton setImage:[UIImage imageNamed:@"checkbox.png"] forState:UIControlStateNormal];
[Radiobutton setImage:[UIImage imageNamed:@"checkboxed.png"] forState:UIControlStateSelected];
[Radiobutton setFrame:CGRectMake(0, 0, 17, 17)];
[Radiobutton addTarget:self action:@selector(checkboxButton:) forControlEvents:UIControlEventTouchUpInside];
[alertView addSubview:Radiobutton];
[alertView show];
can you help me?