4

Hello it may be silly question but i want to know how to create selector with multiple argument like in Objective C

for example:

[myButton addTarget:self action: @selector(buttonTapped:data:), forControlEvents:UIControlStateNormal]

i am not able to create this kind of selector in Swift can anybody out there to help me in this.

Many Thanks in advance

Kampai
  • 22,848
  • 21
  • 95
  • 95
user3914085
  • 41
  • 1
  • 2
  • pass array of object into selector, for multiple argument – Sheshnath Oct 15 '14 at 06:28
  • can you give me example code how to do it because i am new to swift programming – user3914085 Oct 15 '14 at 06:41
  • i am passing the selector this way is that right?fetcher.fetchDataWithRequest(request, delegate: self, didFinishSelector: Selector("requestFinish(OAServiceTicket,NSData)"), didFailSelector: Selector("requestTokenResultdidFinish")) – user3914085 Oct 15 '14 at 06:46

1 Answers1

0

This worked for me:

Selector("buttonTapped:data")
fjlksahfob
  • 1,019
  • 3
  • 16
  • 27