-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authentication #2
Conversation
En la clase LoginViewController hay unos comentarios para intentar más adelante mejorar el label de “Terms & Conditions”
|
||
@interface FormInputViewController : UIViewController | ||
|
||
//- (BOOL)isValidEmail:(NSString *)email; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No subimos codigo comentado al repo salvo contadas excepciones, pero preferentemente no lo hacemos.
-(void)validateLogin{ | ||
LoginViewController * __weak weakSelf = self; | ||
void(^successBlock)(void) = ^{ [weakSelf performSegueWithIdentifier:@"tabBarSegue" sender:self];}; | ||
[self.viewModel isLogged:successBlock]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IDEM, declara el bloque donde lo usas.
se creo la clase ValidationAnswerModel para las respuestas a las validaciones.
Uso de cocoapods para tratar las imágenes.
//¿Está bien que la validación vaya tan abajo? | ||
-(void)validateLogin{ | ||
LoginViewController * __weak weakSelf = self; | ||
if([self.viewModel isLogged]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Siempre ponemos llaves, aunque sea una unica linea, por estilo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No hace falta hacer weak a self en este caso.
Leete eso aunque sea por encima para entender el concepto de por que puede haber retain cycles:
https://blackpixel.com/writing/2014/03/capturing-myself.html
👍 |
No description provided.