when i tap a button 2 images(image 1 and image 2(having ) are pop up now when i tap again i want to remove all but right now only button (i.e image2 in front) is only removed but not image 1 and i can remove image1 only when image 2 is removed how to delete all in 2nd tap and then pop again on 3rd tap
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{NSLog(@" TOUCH FUCK");
UITouch *touch = [touches anyObject];
CGPoint p = [touch locationInView:self.view];
if ([[touch view] tag] == 1000 )
{ // 2 images are Poped here (ony by code
/// this is a png
{
// NSLog(@"0000000000000000000000000000 ");
//[myImagea removeFromSuperview];
CGRect myImageRect = CGRectMake(p.x-113, p.y-113, 224.0f, 195.0f);
myImagea = [[UIImageView alloc] initWithFrame:myImageRect];
[myImagea setImage:[UIImage imageNamed:@"Enjoy Sunburst.png"]];
//myImagea.opaque = YES; // explicitly opaque for performance
[self.view addSubview:myImagea];
[myImagea release];
//tap=1;
}
[pieMenu showInView:self.view atPoint:p]; // ths is dynamic ring(cirular) image2
}
now when user press a button then these 2 images are poped (actully i want to hide dynamic ring but i want to listen to their functions ) so png will pop up but that dyamic button is also thir so when i tap again this time touch event goes to dyanamic button as that is active but i want to remove that png on 2nd tap and i am not able to do .. i dont know how to remove that png when 2nd tap is their and again pop when 3 tap is their
**I CAn only delete that png when dynamic button is removed so 1st tap will show both image 2nd tap will delete dynamic ring and then only 3rd tap will delete that png :(