Reputation:
I have been trying for ages to try an convert this Objective-C into Swift but with no success! Any ideas?
UIButton *button = (UIButton *)[self.view viewWithTag:recognizer.view.tag];
Upvotes: 0
Views: 57
Reputation: 437482
You could do something like:
let button = view.viewWithTag(recognizer.view!.tag) as UIButton
Upvotes: 2