2011-06-08 78 views
0

可能重複:
Tasks with my UIImageView如何突出顯示用戶觸摸它的圖像視圖?

我怎麼能突出我的UIImageView和當用戶觸摸的UIImageView的ImageView的頂部顯示deleteButton(十字按鈕)?

+0

是不是這基本上你問[這裏]同一個問題(http://stackoverflow.com/q/6278942/3009)? – highlycaffeinated 2011-06-08 14:27:23

+0

請幫助我...基本上我是C#開發人員。 – Christina 2011-06-08 14:40:26

+0

任何示例應用程序路徑? – Christina 2011-06-08 14:40:45

回答

0

這是很簡單的。使用

UILongPressGestureRecognizer

在下面的方法寫的檢測手勢和彈出一個刪除按鈕代碼。

- (void)handleGesture; //or 
- (void)handleGesture:(UIGestureRecognizer *)gestureRecognizer; 

刪除使用

- (void)removeTarget:(id)target action:(SEL)action 
相關問題