changing uiview?

Discussion in 'iOS Programming' started by x12, Jan 11, 2010.

  1. x12 macrumors newbie

    May 20, 2009
    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

    -(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
  2. North Bronson macrumors 6502

    Oct 31, 2007
    San José
    A UIImageView? Those views don't usually respond to touches unless you set the right property. Did you try that already?

Share This Page