Как перевести следующий вызов метода из ObjectiveC в синтаксис RubyMotion:
[self.faceView addGestureRecognizer:[
[UIPinchGestureRecognizer alloc] initWithTarget:self.faceView
action:@selector(pinch:)]];
Я зашел так далеко:
self.faceView.addGestureRecognizer(
UIPinchGestureRecognizer.alloc.initWithTarget(
self.faceView, action:???))
Я понимаю, что @selector(pinch:)
указывает делегацию на объект-получатель pinch
, но как бы это сделать в RubyMotion? Возможно, используя блок?