RACChannelTerminal *switchTerminal = self.someSwitchrac_newOnChannel; defaultsTerminal [[NSUserDefaults standardUserDefaults] rac_channelTerminalForKey:@"someBoolKey"];[switchTerminal subscribe:defaultsTerminaldefaultsTerminal subscribeswitchTerminal];
参考:
http://stackoverflow.com/questions/23107136/bind-uiswitchs-state-to-nsuserdefaults-with-reactivecocoa