user1735372
user1735372

Reputation:

Objective C To Swift Issue

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

Answers (1)

Rob
Rob

Reputation: 437482

You could do something like:

let button = view.viewWithTag(recognizer.view!.tag) as UIButton

Upvotes: 2

Related Questions