指紋認証(TouchID)後にページ遷移させたいと考えております。
以下の様なソースコードでページ遷移自体はできるのですが、
遷移後のページ表示がやたらと遅いです。
特に画像(UIImageView)は数秒遅れて表示されます。
同じページをボタンタップからのページ遷移で表示させると問題なく表示されるので、
何か遷移のさせ方に問題があるのだと思います。
こちら改善させる方法ありますでしょうか?
Objective
1 LAContext *myContext = [[LAContext alloc] init]; 2 NSError *authError = nil; 3 NSString *myLocalizedReasonString = @"認証"; 4 5 if ([myContext canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&authError]) 6 { 7 [myContext evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics 8 localizedReason:myLocalizedReasonString 9 reply:^(BOOL success, NSError *error) 10 { 11 if (success) { 12 UIStoryboard *storyBoard = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; 13 YYYViewController *yyy = [storyBoard instantiateViewControllerWithIdentifier:@"yyyy"]; 14 [self presentViewController:yyy animated:NO completion:nil]; 15 } 16 else { 17 UIStoryboard *storyBoard = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; 18 XXXViewController *xxx = [storyBoard instantiateViewControllerWithIdentifier:@"xxxx"]; 19 [self presentViewController:xxx animated:NO completion:nil]; 20 } 21 }]; 22 } 23```。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。