Closed yeafel closed 8 years ago
- (void)applicationDidEnterBackground:(NSNotification *)notification
{
if ([self isPasscodeSet] && !self.backgroundLockVisible) {
[NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(lockApp) userInfo:nil repeats:NO];
}
}
-(void)lockApp{
[self lockFromBackground:YES];
}
this can solve my problem.
Runing Demo in iPhone6(iOS9.2),Foreground state,Opened the Touch ID,and When I killed Demo,Demo will automatically restart .But if Demo didEnterBackground,it can be killed.