如何在不使用 InterfaceBuilder 的情况下将 UISwitch(toggle switch) 添加到 UIToolBar ?它不是系统项目,所以我无法使用
UIBarButtonItem *systemItem1 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh
target:self
action:@selector(pressButton1:)];
如何以相同的方式添加拨动开关?
谢谢你。