Flick between the UIView

Discussion in 'iOS Programming' started by 16040146, May 10, 2010.

  1. 16040146 macrumors newbie

    Joined:
    May 10, 2010
    #1
  2. 16040146 thread starter macrumors newbie

    Joined:
    May 10, 2010
    #2
    Finally~

    Finally i had solved my problem:)

    here`s the code
    Code:
    //In touch event
    - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
    {
    	UITouch*	touch = [touches anyObject];
    	EFlicked flicked = [self wasFlicked:touch];  // flick check
    
    	//goto 2nd View
    	ViewSecond *second = [[ViewSecond alloc] initWithNibName:nil
    										bundle:nil];
    					     [self presentModalViewController:second
    						   			    animated:YES];
    }
    
     
  3. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #3
    Hmm, what kind of class is EFlicked? Also, you set flicked but then never use it. Plus, what is wasFlicked:? That's not a standard method name.
     

Share This Page