As Apple\'s document write, UISwitch\'s function setOn(on: Bool, animated: Bool) does not send action. It works fine before iOS 10, but it will send ac
The following solution resolves that issue. You should dispatch_async only if trying to call [UISwitch setOn:] within the action callback of that switch itself.