Can we use blocks with Gesture Recognizers? It doesn’t appear so. For example, this does not work:
UITapGestureRecognizer *tapped = [[UITapGestureRecognizer alloc] initWithTarget: self
action:^(id sender) {
}
];
Am I missing something, or are blocks just not supported by the UIGestureRecognizer class?
However, this should:
You shouldn’t probably do this, however, since it’s a private method.