以下のライブラリをプロジェクトに実装できました。使用ライブラリ:: https://github.com/rolandleth/LTHPasscodeViewController
PIN コードを入力し、それが正しいことを確認した後、PIN コードを直接入力した後にタブ バー アクティビティに切り替えることはできませんが、その間に NSNotification を使用すると制御を移すことができます。
私のコード:
- (void) receiveTestNotification:(NSNotification *) notification
{
if ([[notification name] isEqualToString:@"TestNotification"])
NSLog (@"Successfully received the test notification!");
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
mainTabViewController *objSec=[storyboard instantiateViewControllerWithIdentifier:@"passID"];
[self.navigationController pushViewController:objSec animated:YES];
NSLog を配置した後、ログ出力も取得していますが、タブビューは表示されません。
ピン入力の直後にタブ ビューを呼び出す方法はありますか。
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(receiveTestNotification:)
name:@"TestNotification"
object:nil];
ストーリーボードを使用して行われたタブビュー。