How to make radio button in Objective c.I want to switch at different view controller when hit radio button. Want to make simple two radio buttons.
You need to set different image to button with its state in ViewDidLoad.
[yourbutton setImage: [UIImage imageNamed:@"Radio_button_off.png"]forState:UIControlStateNormal];
[yourbutton setImage: [UIImage imageNamed:@"Radio_button_on.png"]forState: UIControlStateSelected];
- (void) btnAction:(UIButton*)button{
button.selected = !button.selected;
}