- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{NSLog(@" TOUCH ");
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]; // this is dynamic ring(cirular)
}
i want to display on and off png based on tap .
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 :(