Topic locked

Image is not dsiplaying after deleting

July 3, 2014 - 5:16am #1

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];

 }

Image is not dsiplaying after deleting

July 3, 2014 - 1:14pm #2
Topic locked