In my app I’m displaying a table with different elements if a user taps on a tableviewcell a detailview gets pushed onto the navigationstack.
I now want to provide the user with abilty to “long tap” on a tableviewcell in order to pop up an alertview showing the user different options that can be applied on said tableviewcell (email information to a friend, print it out, add to bookmarks etc)
how do i implement a “long tap” gesture recognizer on a UITableViewCell??
thanks for your help
Have you looked at UILongPressGestureRecognizer?
See: http://developer.apple.com/library/ios/#documentation/uikit/reference/UILongPressGestureRecognizer_Class/Reference/Reference.html%23//apple_ref/occ/cl/UILongPressGestureRecognizer
You might want to consider a swipe gesture as seen in the Twitter app instead, though: I don’t think that a long tap on a table cell would be very intuitive to use or expected by the user. Just my 2 cents.