Attach a block to a custom view as a gesture recognizer