@@ -328,20 +328,20 @@ - (void)resetPasscode {
328328- (void )_handleBiometricsFailureAndDisableIt : (BOOL )disableBiometrics {
329329 dispatch_async (dispatch_get_main_queue (), ^{
330330 if (disableBiometrics) {
331- _isUsingBiometrics = NO ;
332- _allowUnlockWithBiometrics = NO ;
331+ self. isUsingBiometrics = NO ;
332+ self. allowUnlockWithBiometrics = NO ;
333333 }
334334
335- _useFallbackPasscode = YES ;
336- _animatingView .hidden = NO ;
335+ self. useFallbackPasscode = YES ;
336+ self. animatingView .hidden = NO ;
337337
338- BOOL usingNavBar = _isUsingNavBar ;
339- NSString *logoutTitle = usingNavBar ? _navBar .items .firstObject .leftBarButtonItem .title : @" " ;
338+ BOOL usingNavBar = self. isUsingNavBar ;
339+ NSString *logoutTitle = usingNavBar ? self. navBar .items .firstObject .leftBarButtonItem .title : @" " ;
340340
341341 [self _resetUI ];
342342
343343 if (usingNavBar) {
344- _isUsingNavBar = usingNavBar;
344+ self. isUsingNavBar = usingNavBar;
345345 [self _setupNavBarWithLogoutTitle: logoutTitle];
346346 }
347347 });
@@ -569,7 +569,7 @@ - (void)_dismissMe {
569569 [self _resetUI ];
570570 [_passcodeTextField resignFirstResponder ];
571571 [UIView animateWithDuration: _lockAnimationDuration animations: ^{
572- if (_displayedAsLockScreen ) {
572+ if (self. displayedAsLockScreen ) {
573573 if (LTHiOS8) {
574574 self.view .center = CGPointMake (self.view .center .x , self.view .center .y * 2 .f );
575575 }
@@ -590,18 +590,18 @@ - (void)_dismissMe {
590590 }
591591 else {
592592 // Delete from Keychain
593- if (_isUserTurningPasscodeOff ) {
593+ if (self. isUserTurningPasscodeOff ) {
594594 [self _deletePasscode ];
595595 }
596596 // Update the Keychain if adding or changing passcode
597597 else {
598- [self _savePasscode: _tempPasscode ];
598+ [self _savePasscode: self .tempPasscode ];
599599 // finalize type switching
600- if (_isUserSwitchingBetweenPasscodeModes ) {
601- _isUserConfirmingPasscode = NO ;
600+ if (self. isUserSwitchingBetweenPasscodeModes ) {
601+ self. isUserConfirmingPasscode = NO ;
602602 [self setIsSimple: !self .isSimple
603603 inViewController: nil
604- asModal: _displayedAsModal ];
604+ asModal: self .displayedAsModal ];
605605 }
606606 }
607607 }
@@ -610,15 +610,15 @@ - (void)_dismissMe {
610610 [self .delegate performSelector: @selector (passcodeViewControllerWillClose )];
611611 }
612612
613- if (_displayedAsLockScreen ) {
613+ if (self. displayedAsLockScreen ) {
614614 [self .view removeFromSuperview ];
615615 [self removeFromParentViewController ];
616616 }
617- else if (_displayedAsModal ) {
617+ else if (self. displayedAsModal ) {
618618 [self dismissViewControllerAnimated: YES
619619 completion: nil ];
620620 }
621- else if (!_displayedAsLockScreen ) {
621+ else if (!self. displayedAsLockScreen ) {
622622 [self .navigationController popViewControllerAnimated: NO ];
623623 }
624624 }];
@@ -849,8 +849,8 @@ - (void)updateViewConstraints {
849849
850850 if (self.isSimple ) {
851851 [_digitTextFieldsArray enumerateObjectsUsingBlock: ^(UITextField * _Nonnull textField, NSUInteger idx, BOOL * _Nonnull stop) {
852- CGFloat constant = idx == 0 ? 0 : _horizontalGap ;
853- UIView *toItem = idx == 0 ? _simplePasscodeView : _digitTextFieldsArray [idx - 1 ];
852+ CGFloat constant = idx == 0 ? 0 : self. horizontalGap ;
853+ UIView *toItem = idx == 0 ? self. simplePasscodeView : self. digitTextFieldsArray [idx - 1 ];
854854
855855 NSLayoutConstraint *digitX =
856856 [NSLayoutConstraint constraintWithItem: textField
@@ -865,7 +865,7 @@ - (void)updateViewConstraints {
865865 [NSLayoutConstraint constraintWithItem: textField
866866 attribute: NSLayoutAttributeTop
867867 relatedBy: NSLayoutRelationEqual
868- toItem: _simplePasscodeView
868+ toItem: self .simplePasscodeView
869869 attribute: NSLayoutAttributeTop
870870 multiplier: 1 .0f
871871 constant: 0 ];
@@ -874,7 +874,7 @@ - (void)updateViewConstraints {
874874 [NSLayoutConstraint constraintWithItem: textField
875875 attribute: NSLayoutAttributeBottom
876876 relatedBy: NSLayoutRelationEqual
877- toItem: _simplePasscodeView
877+ toItem: self .simplePasscodeView
878878 attribute: NSLayoutAttributeBottom
879879 multiplier: 1 .0f
880880 constant: 0 ];
@@ -883,12 +883,12 @@ - (void)updateViewConstraints {
883883 [self .view addConstraint: top];
884884 [self .view addConstraint: bottom];
885885
886- if (idx == _digitTextFieldsArray .count - 1 ) {
886+ if (idx == self. digitTextFieldsArray .count - 1 ) {
887887 NSLayoutConstraint *trailing =
888888 [NSLayoutConstraint constraintWithItem: textField
889889 attribute: NSLayoutAttributeTrailing
890890 relatedBy: NSLayoutRelationEqual
891- toItem: _simplePasscodeView
891+ toItem: self .simplePasscodeView
892892 attribute: NSLayoutAttributeTrailing
893893 multiplier: 1 .0f
894894 constant: 0 ];
@@ -1458,7 +1458,7 @@ - (void)_resetTextFields {
14581458 // cancel in the Touch ID prompt. In some cases, the keyboard is present, but invisible
14591459 // after dismissing the alert unless we call becomeFirstResponder with a short delay
14601460 dispatch_after (dispatch_time (DISPATCH_TIME_NOW, (int64_t )(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue (), ^{
1461- [_passcodeTextField becomeFirstResponder ];
1461+ [self .passcodeTextField becomeFirstResponder ];
14621462 });
14631463 }
14641464
0 commit comments