wikitude sdkは監督から削除します
-
27-10-2019 - |
質問
Wikitude SDKを実装しており、このコードを使用して初期化することができます。
-(IBAction)launchAR:(id)sender{
wikitudeAR = [[WikitudeARViewController alloc] initWithDelegate:self applicationPackage:nil applicationKey:nil applicationName:nil developerName:nil];
}
- (void) verificationDidSucceed {
BuddyFinderAppDelegate *appDel = (BuddyFinderAppDelegate *)[[UIApplication sharedApplication] delegate];
[appDel.window addSubview: [wikitudeAR start]];
[window makeKeyAndVisible];
}
MainViewControllerビューに戻るにはどうすればよいですか? (オブジェクト「CustomButton」から呼びたい)
解決
custommenubuttondelegateimpl1.mを使用できます
@implementation CustomMenuButtonDelegateImpl1
- (void) customMenuButtonPressed:(WTPoi *)currentSelectedPoi {
//NSLog(@"addpoi");
[[WikitudeARViewController sharedInstance] hide];
[UIApplication sharedApplication].statusBarHidden = NO;
}
@end
そして、それは非常によく疲れます
他のヒント
私はあなたのと思います WikitudeARViewController
デリゲートはアプリケーションデリゲートです。
1)ARブラウザを起動する場所から独自のビューコントローラーを実装します(ボタンクリック、できれば)。
2)WikitudearViewControllerをViewController(ボタンイベント)からインスタンス化し、DelegateとしてViewControllerを作成します。
3)[wikitudear start]からviewcontroller.view(window.viewではなく)に[wikitudear start]から返されたビューを作成します。
お役に立てれば。
所属していません StackOverflow