"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

How to stop alertview click ok button

I'm displaying alertview while chips target detect only, not for all. After detecting chips target i can able to display alertview, but it keeps displaying after cancel.

 

int targetIndex = 0; // "stones"

        if (!strcmp(trackable.getName(), "chips"))

            targetIndex = 1;

        else if (!strcmp(trackable.getName(), "tarmac"))

            targetIndex = 2;

        

        if(targetIndex == 1){

       [self performSelectorOnMainThread:@selector(DisplayAlertView

     ) withObject:nil waitUntilDone:false];

            }

 

- (void)DisplayAlertView{    UIAlertView *alert =    [[UIAlertView alloc] initWithTitle:@"Info" message:@"Hello Vuforia!"                              delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];    [alert show];}