Created
March 20, 2014 11:08
-
-
Save eladb/9661513 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context | |
{ | |
if ([keyPath isEqualToString:@"currentUser"]) { | |
if (self.currentUser) { | |
[self hopTo:@"main" then:nil]; | |
} | |
else { | |
[self hopTo:@"signup_login" then:nil]; | |
} | |
} | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment