By JonnyR
on Mon, 02/17/2014 - 10:22
Hello together :)
So I have custom UIView Elements shown on top of the camera image which works fine. Now I want to set them to hidden by default and only show them, if a specific Image Target is detected. So I tried calling setHidden:NO in renderFrameQCAR but the elements don't show up. I figured that the problem is, that renderFrameQCAR runs on a background thread and the UI must be updated on the main thread, but calling the selector which updates the UI via performSelectorOnMainThread: doesn't really work either. Does anybody else know a solution for this problem? Thanks in advance!
UI changes from within EAGLVIiew's renderFramceQCAR
but calling the selector which updates the UI via performSelectorOnMainThread: doesn't really work either
What exactly do you mean by this?
It either works or it does not...
N
UI changes from within EAGLVIiew's renderFramceQCAR
[quote=NalinS]
but calling the selector which updates the UI via performSelectorOnMainThread: doesn't really work either
What exactly do you mean by this?
It either works or it does not...
N
[/quote]
UI changes from within EAGLVIiew's renderFramceQCAR
Other developers have managed to do this and it may be worth searching the forums for more precise steps:
https://developer.vuforia.com/forum/ios/uibutton-overlayviewcontroller
However, note that the samples have changed somewhat, so you will need to adapt any changes.
UI changes from within EAGLVIiew's renderFramceQCAR
Thanks for your reply NalinS. I got it to work using the newest samples. Don't ask me why it didn't work using the old samples as I used the exact same code.
In case anyone wonders how to do this:
UI changes from within EAGLVIiew's renderFramceQCAR
Great to hear :)
N