Issue #8688 invalid

Use of unnecessary code in -(void)setFont{} of UILabels in AR_DnDForgotPasswordViewController

Sauvik Dolui
created an issue

primaryEmailIDtextField.font = [UIFont fontWithName:@"ProximaNova-Regular" size:14];

textfieldForCode.font = [UIFont fontWithName:@"ProximaNova-Regular" size:14]; textFieldForConfirmPassword.font = [UIFont fontWithName:@"ProximaNova-Regular" size:14]; textfieldForPassword.font = [UIFont fontWithName:@"ProximaNova-Regular" size:14];

//The above code can be simply written as primaryEmailIDtextField.font = [UIFont fontWithName:@"ProximaNova-Regular" size:14]; textFieldForCode.font=primaryEmailIDtextField.font; textFieldForConfirmPassword.font=primaryEmailIDtextField.font; textfieldForPassword.font=primaryEmailIDtextField.font;

//Same issue is applicable for these four pairs

1.labelForAlert.font AND labelForAlertInResetPassword.font 2.BUttonReset.titleLabel.font AND BUttonReset.titleLabel.font 3.etxtViewForForgotPassword.font AND textViewForResetPassword.font 4.labelForHeadingInResetPassword.font AND labelForHeadingInForgotPassword.font1.

Comments (2)

  1. Log in to comment