2011-04-29 90 views

回答

1

您首先需要實現來自UIResponder鏈的觸摸感應方法。你需要實現的方法有:

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event 
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event 
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event 

在這個方法裏面你可以使用Core Graphics繪圖方法繪製自定義繪圖。 This教程將引導您完成步驟。