1
在屏幕上的任何地方觸摸用戶應該去iPhone應用程序中的下一個視圖? 我們該如何實施?ONTouch事件問題?
在屏幕上的任何地方觸摸用戶應該去iPhone應用程序中的下一個視圖? 我們該如何實施?ONTouch事件問題?
當然,你可以使用觸摸
- (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
{
}
}
好運的這個方法的!
閱讀UIResponder Class Reference更多細節
現在您可以實現
- (無效)的touchesBegan:(NSSet中*)觸及withEvent:方法(的UIEvent *)事件
方法在您的viewController類中,並可能通過推入NavigationController加載otherViewController。