How can I add UISwitch(toggle switch) to UIToolBar without using InterfaceBuilder ? It is not a system item, so I could not use
UIBarButtonItem *systemItem1 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh
target:self
action:@selector(pressButton1:)];
How can I add the toggle switch in same way ?
Thank You.