"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

Image is not dsiplaying after deleting

I have superview to display the ImageView in EAGLview while target detect. It displays the image, then i have a button to hide the image from superview. After hiding image i can't display again, So, it won't displaying second scan the target.

 

if(!strcmp(trackable.getName(), "Depression_anxiety")){

              dispatch_async(dispatch_get_main_queue(), ^(void) {

                if (!annotation1.superview) {

                    [self addSubview:annotation1];

                       imgView_depress = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 600, 500)];

                     imgView_depress.image = [UIImage imageNamed:@"brain.jpg"];

                               [annotation1 addSubview: imgView_depress];

}

 

-(void)closeButtonTapped:(id)sender{

     [closeButton setHidden:YES];

     [annotation1 setHidden:YES];

 }