فهرست منبع

passcode lock screen: minor UX tweak

Felix Paul Kühne 10 سال پیش
والد
کامیت
3c87d60f1f
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      PAPasscode/PAPasscodeViewController.m

+ 5 - 0
PAPasscode/PAPasscodeViewController.m

@@ -225,6 +225,11 @@
     [passcodeTextField becomeFirstResponder];
 }
 
+- (void)viewWillDisappear:(BOOL)animated {
+    [super viewWillDisappear:animated];
+    [passcodeTextField resignFirstResponder];
+}
+
 - (NSUInteger)supportedInterfaceOrientations {
     return UIInterfaceOrientationMaskPortrait|UIInterfaceOrientationMaskPortraitUpsideDown;
 }