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 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 agian on 3rd tap
CODE
- (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
}