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

App crashes on iOS 8 in _applicationWillEnterForeground method #80

Closed
oanaBan opened this issue Oct 2, 2014 · 5 comments
Closed

App crashes on iOS 8 in _applicationWillEnterForeground method #80

oanaBan opened this issue Oct 2, 2014 · 5 comments

Comments

@oanaBan
Copy link

oanaBan commented Oct 2, 2014

The app chanshes because of this line:
// This is like this because it screws up the navigation stack otherwise
[self performSelector:@selector(showLockScreenWithAnimation:withLogout:andLogoutTitle:)
withObject:@(NO)
afterDelay:0.0];

Steps to reproduce:

  1. set passcode on
  2. set application to background
  3. open application
  4. enter passcode
  5. click to turn passcode off
  6. fill in only 3 numbers of the passcode
  7. set application to background
  8. open application
@oanaBan
Copy link
Author

oanaBan commented Oct 2, 2014

As a fix I created a method call showLockScreenWithAnimation

  • (void)showLockScreenWithAnimation {
    [self showLockScreenWithAnimation:NO withLogout:NO andLogoutTitle:nil];
    }

and replaced

// This is like this because it screws up the navigation stack otherwise
[self performSelector:@selector(showLockScreenWithAnimation:withLogout:andLogoutTitle:)
withObject:@(NO)
afterDelay:0.0];

with

[self performSelector:@selector(showLockScreenWithAnimation)
withObject:nil
afterDelay:0.0];

@rolandleth
Copy link
Owner

Hey,

Thanks! But shouldn't it be (void)showLockScreenWithoutAnimation? Or, even better, (void)showLockScreenWithoutAnimationLogoutButtonAndTitle?

@oanaBan
Copy link
Author

oanaBan commented Oct 2, 2014

:)) I only made a quick fix so if anybody else had the same issue will know how to fix it. I didn't pay attention to method's name.

@rolandleth
Copy link
Owner

Hmm, I don't really have the time right now, would you be willing to add the fix and create a pull request, please? Would be awesome :)

@rolandleth
Copy link
Owner

Fixed in 3.2.0

rolandleth pushed a commit that referenced this issue Oct 10, 2014
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

No branches or pull requests

2 participants