開発プロジェクト(ARClientDev)をベースに、ユーザーのUIViewControllerを追加することにより、ユーザーのネイティブアプリケーションを開発してください。
本製品では以下の3つのUIViewControllerが含まれます。
ネイティブアプリケーションから上記のUIViewControllerを起動することができます。これにより、開発するUIViewControllerと本製品UIViewControllerを組み合わせた実行ファイル(app)を作成できます。利用するUIViewControllerを選択して実行ファイルに組み込んでください。
呼び出し方の例は、ARClientDev/IARMainMenuViewController.mを参考にしてください。
例
AR重畳表示アプリケーションUIViewController
//起動するURLを設定します。 NSString *sampleUrl = @"https://www.fujitsu.com/index.html"; // UIViewControllerを作成します。 [IARMainController getInstance].mainViewCtrl = [[IARWebMainViewController alloc] initWithUrl: sampleUrl inputClassName:NSStringFromClass([IARMainMenuViewController class])]; //UIViewControllerを起動します。 self.window.rootViewController = [IARMainController getInstance].mainViewCtrl;
// UIViewControllerを作成します。 [IARMainController getInstance].mainViewCtrl = [[IARLiveAuthoringViewController alloc] initWithInputClassName:NSStringFromClass([IARMainMenuViewController class])]; //UIViewControllerを起動します。 self.view.window.rootViewController = [IARMainController getInstance].mainViewCtrl;
// UIViewControllerを作成します。 id sampleViewController = [[IARSettingViewController alloc] init]; //UIViewControllerを起動します。 [self presentModalViewController: sampleViewController animated:NO];
ランチャーからの起動時にIARMainMenuViewControllerを表示する設定を行なっています。起動UIViewControllerを変更する場合は、self.window.rootViewControllerへ起動したいUIViewControllerを設定してください。
例
self.window.rootViewController = [[IARMainMenuViewController alloc] init];