// Do any additional setup after loading the view.
if ( ) { // 1
self.architectView = ;
; // 2
NSURL *architectWorldUrl = ;
;
;// 3
self.architectView.delegate = self;
}
else {
NSLog(@"This device is not capable of running ARchitect Worlds. Requirements are: iOS 6 or higher, iPhone 3GS or higher, iPad 2 or higher. Note: iPod Touch 4th and 5th generation are only supported in WTAugmentedRealityMode_IR.");
}
}
-(void)viewWillAppear:(BOOL)animated {
;
if ( ! ) {
;
}
}
-(void)viewWillDisappear:(BOOL)animated {
;
if ( ) {
;
}
}
- (void)urlWasInvoked:(NSString*)url
{
NSLog(@"url was invoked in ARchitectWorld: %@", url);
}
@end
in my .js i have this:
var playButtonImgJima = new AR.ImageResource("assetsApp/play.png");
var playButtonj = new AR.ImageDrawable(playButtonImgJima, 0.3, {
Apper I have all we need but don't show me the url in the NSLog
A
Andreas Schacherbauer
said
about 9 years ago
Hi, - (void)urlWasInvoked:(NSString*)url is a very old and outdated WTArchitectViewDelegate method. Please refer to the latest documentation or example application to be sure to use valid code snippets.
The method you need to implement in your vie controller is:
Bodoquezorrilla