By lvshuai
on Tue, 11/27/2018 - 02:15
I have download the sample and I can see the preview view and can see the AR when detect the target.
Now, I want to add some subviews to the preview view, for example UILabels.
I just use ImageTargetsViewController and try to add UILabels on storyboard of Image Targets Scene, but unfortunately, nothing shown on the preview view.
Is my mistake? could you please give me some suggestion?
Regards,
Lu
The reason is failing is that
The reason is failing is that viewWillAppear is called only once when a view appears (obviously) but webViewDidFinishLoad is called every time the webView finishes loading anything. So when you click on a link the method is called when the new page gets loaded.