1
This commit is contained in:
@@ -138,6 +138,8 @@
|
||||
}];
|
||||
|
||||
[self.emailFieldContainer addSubview:self.emailTextField];
|
||||
NSString *email = [[NSUserDefaults standardUserDefaults] objectForKey:KBUserEmailKey];
|
||||
self.emailTextField.text = email;
|
||||
[self.emailTextField mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.edges.equalTo(self.emailFieldContainer).insets(UIEdgeInsetsMake(0, 16, 0, 16));
|
||||
}];
|
||||
@@ -229,6 +231,8 @@
|
||||
|
||||
[self.loginVM emailLoginEmail:email password:password WithCompletion:^(BOOL success, NSError * _Nullable error) {
|
||||
if (success) {
|
||||
[[NSUserDefaults standardUserDefaults] setValue:email forKey:KBUserEmailKey];
|
||||
[[NSUserDefaults standardUserDefaults] synchronize];
|
||||
id<UIApplicationDelegate> appDelegate = UIApplication.sharedApplication.delegate;
|
||||
if ([appDelegate respondsToSelector:@selector(setupRootVC)]) {
|
||||
AppDelegate *delegate = (AppDelegate *)appDelegate;
|
||||
|
||||
Reference in New Issue
Block a user