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

midntdj

macrumors newbie
Original poster
Sep 23, 2009
9
0
I have a ViewController that contains multiple UIViewImages. As the user touches an image I change the image1 to image2. On the last image the user touches, I change the image and than I call another routine.

By calling this routine, I never see the last image change on the Simulator or on the iPhone.

My code snippet looks like this in my "TouchesBegan" routine:
Code:
   [self.image1View setMyAlpha:0.0f];
   [self.image2View setMyAlpha:1.0f];
		
   if (iCount == 0) {
	[self ReDrawView];
   }

It appears that the ReDrawView routine has to complete before the [self.image2Veiw] is displayed on the screen. Am I missing something here? Do I need to call the ReDrawView in a different way to get the image to display on the screen?

Thanks in advance.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.