Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (22 sloc) 0.6 kB
//
// UIView+DTActionHandlers.h
// DTFoundation
//
// Created by Oliver Drobnik on 03.06.12.
// Copyright (c) 2012 Cocoanetics. All rights reserved.
//
/**
Methods to add simple block-based actions to UIViews.
*/
@interface UIView (DTActionHandlers)
/**
Attaches the given block for a single tap action to the receiver.
@param block The block to execute.
*/
- (void)setTapActionWithBlock:(void (^)(void))block;
/**
Attaches the given block for a long press action to the receiver.
@param block The block to execute.
*/
- (void)setLongPressActionWithBlock:(void (^)(void))block;
@end
Jump to Line
Something went wrong with that request. Please try again.