Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

x12

macrumors newbie
Original poster
May 20, 2009
27
0
hey i really need help with a touch event i want to change uiview when an imageview is pressed i have started a touchesbegan function but dont no wer to go from there the code i am using is below

Code:
-(void)touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event
{
	UITouch *touch = [[event allTouches] anyObject];
	
	if ([touch view] == buttonl) {
		
		
		
		
	}	
}

im not even sure if this is the right way to go about it and i am new to this
any help is appreciated
 
hey i really need help with a touch event i want to change uiview when an imageview is pressed i have started a touchesbegan function but dont no wer to go from there the code i am using is below

A UIImageView? Those views don't usually respond to touches unless you set the right property. Did you try that already?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.