0
A
回答
0
UIViewController
是UIResponder
一個子類,這樣你就可以實現的方法touchesBegan:withEvent:
,touchesMoved:withEvent:
,touchesEnded:withEvent:
和touchesCancelled:withEvent:
檢測「簽名運動」。
例如使用方法-touchesMoved:withEvent:
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *touch = [touches anyObject];
CGPoint currentPosition = [touch locationInView:self.view];
NSLog(@"%@", NSStringFromCGPoint(currentPosition));
}
欲瞭解更多信息檢查UIResponder
類的documentation
相關問題
- 1. 如何獲取圖像的座標/ JLabel?
- 2. iOS從應用程序名稱獲取應用程序圖標
- 3. 如何從圖像獲取座標CGRectMake
- 4. 獲取圖像座標
- 5. 獲取圖像座標
- 6. 推薦應用程序捕獲圖像內的座標
- 7. 從ios應用程序精確座標
- 8. 如何在matlab中獲取圖像中角點的座標
- 9. 如何獲取(提取)iOS系統應用程序的圖標,如地址簿應用程序?
- 10. 如何從縮放圖像中的UITapGestureRecognizer獲取UIImage的座標?
- 11. 如何從應用程序獲取iOS的唯一標識符?
- 12. iTextSharp的:圖像獲取座標
- 13. 獲取圖像佔位符的座標
- 14. 如何在Android中獲取(x,y)圖像的座標?
- 15. Android:如何獲取圖像/ ImageView中的xy座標?
- 16. 用鼠標點擊獲取圖像地圖的座標
- 17. 無法在android應用程序中獲取GPS座標
- 18. 在Windows Runtime應用程序中獲取GPS座標(Windows 8.1)
- 19. 如何使用three.js在mouseover上獲取圖像座標?
- 20. 如何從圖像輸入中獲取x和y座標?
- 21. 如何從Android設備中獲取圖像java應用程序
- 22. 如何從應用程序目錄中獲取圖像列表
- 23. 如何在android應用程序中從xmpp獲取圖像
- 24. 如何獲取使用硒的android原生應用程序的x,y座標
- 25. 獲取X Y座標w.r.t圖像
- 26. 從跳板(越獄)獲取應用程序圖標圖像
- 27. 即使應用程序已關閉,也始終獲取GPS座標iOS
- 28. iTunes API:獲取應用程序的100x100像素圖標
- 29. 獲取Android應用程序屏幕的座標
- 30. 從ProcessSerialNumber獲取應用程序圖標
是如何接口的設計?是用戶登錄到「UIImageView」還是「UIView」?您對哪些座標感興趣,尊重容器視圖還是* globals *座標? – tkanzakic 2013-02-21 08:39:24
用戶正在繪製一個UIView – Mashhadi 2013-02-21 09:31:37
好的,你最感興趣的是哪個座標? – tkanzakic 2013-02-21 09:32:30