Skip to content
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

Closed
wants to merge 12 commits into from
Closed

Authentication #2

wants to merge 12 commits into from

Conversation

esakuda
Copy link
Owner

@esakuda esakuda commented Feb 26, 2015

No description provided.

En la clase LoginViewController hay unos comentarios para intentar más
adelante mejorar el label de “Terms & Conditions”
@esakuda esakuda assigned damfinkel and pablog and unassigned damfinkel Feb 26, 2015

@interface FormInputViewController : UIViewController

//- (BOOL)isValidEmail:(NSString *)email;
Copy link
Collaborator

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];
Copy link
Collaborator

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])
Copy link
Collaborator

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.

Copy link
Collaborator

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

@pablog
Copy link
Collaborator

pablog commented Mar 10, 2015

👍

@esakuda esakuda closed this Mar 10, 2015
@esakuda esakuda deleted the authentication branch March 10, 2015 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants