[switchView addTarget:self action:@selector(switchAction) forControlEvents:UIControlEventValueChanged];
Related API: UIControlEventAllEditingEvents, UIControlEventAllEvents, UIControlEventAllTouchEvents, UIControlEventApplicationReserved, UIControlEventEditingChanged, UIControlEventEditingDidBegin, UIControlEventEditingDidEnd, UIControlEventEditingDidEndOnExit, UIControlEventSystemReserved, UIControlEventTouchCancel, UIControlEventTouchDown, UIControlEventTouchDownRepeat, UIControlEventTouchDragEnter, UIControlEventTouchDragExit, UIControlEventTouchDragInside, UIControlEventTouchDragOutside, UIControlEventTouchUpInside, UIControlEventTouchUpOutside