Difference between catch: and subscribeError:
问题 In ReactiveCocoa, what's the difference between the subscribeError: method vs. catch: ? Why would you want to return a signal in catch: ? 回答1: -subscribeError: actually subscribes: this is the end of the line. Whereas -catch: simply transforms a signal into a new signal (and doesn't actually subscribe). Think of the signal like a program. When you -subscribeError: , you are telling the computer "I want to run this program, but I only want to hear back from you if it errors out." When you