"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

load UIWebview when we detect the Target Image

Hi all ,

Thank you spending time for reading my post . My intension is when we detect the Target using the ImageTarget I have to load the UIWebview . So for that in the  renderFrameQCAR mehtod I have tried this code for loading a UIWebView when we detect the ImageTarget . But it is crashing . Please help me how to do this .

 

            UIWebView *ew = [[UIWebView alloc] initWithFrame:self.bounds];

            [ew loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.incipio.com"]]];

            [self addSubview:ew];

 Thanks in advance 

Chances are that you may be running into some threading issue as you cannot simply jump to another view inside renderFrameQCAR (which is running on a background thread) without ensuring that there is no conflict with the AR View.