"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

Adding popup to EAGLView

Hello, I'm trying to modify VirtualButtons sample to show a popup whenever a button is pressed. I added a UILabel to EAGLView.h. In initWithFrame I setup the label and added it: [self addSubview:popupLabel];At this point it shows up as expected. But now I'm trying to change the text dynamically and it's not working somehow. What I would like is to change the text depending on which button is pressed. I thought I would just have to change the label text in if (button->isPressed()) but somehow this doesn't work. If I put 'popupLabel.text = @"text" in postInitQCAR, the label changes but when I place the text in renderFrameQCAR it doesn't work.If I change the label both in postInitQCAR and renderFrameQCAR, it works if I put the code before [self setFramebuffer];For example: popupLabel.text = @"render 2";[self setFrameBuffer];popupLabel.text = @"render 3"; The text shows up as 'render 2' instead of 'render 3'. Can someone help me?  native SDK: vuforia-sdk-1-5-8MacOS version number: 10.6.8Xcode version number: 4.2iPhone 4 GSMiOS version: 5.1.1

Hi cekk,

This might be because renderFrameQCAR is executed via a background thread.

So one thing you could try is to execute the function to change the text on the main thread e.g.

Hi NalinS, thanks for replying.

I couldn't find in existing samples, UI interacting with virtual button press event (which seems not an event really, just something that's getting checked all the time while tracking).

"I placed the changing text code inside renderFrameQCAR "

Put this inside another function called say showMessage , but then call that function from within renderFrameQCAR