2011-03-02 65 views

回答

1

當然,你可以使用觸摸

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event 
{ 
    //Get all the touches. 
    NSSet *allTouches = [event allTouches]; 

    //Number of touches on the screen 
    if([allTouches count] > 0) 
    { 
//Navigate to next screen here likewise you generally do 
    } 
else 
{ 

} 

} 

好運的這個方法的!

0

閱讀UIResponder Class Reference更多細節

現在您可以實現

  • (無效)的touchesBegan:(NSSet中*)觸及withEvent:方法(的UIEvent *)事件

方法在您的viewController類中,並可能通過推入NavigationController加載otherViewController。