How to pass parameter to selector function in swift? : IOS Architect



How to pass parameter to selector function in swift? : IOS Architect..

Answer / Jagvir Singh

In Swift, you can pass parameters to a selector function using the NSInvocation method. You can define a method with the desired parameters in your target object, and then create an NSInvocation instance with that method as the selector.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Interview Questions

What are all the newly added frameworks iOS 4.3 to iOS 5.0?

1 Answers   CDC,


what is your preferred programming language? Why? How long will it take you to learn a new programming language?

1 Answers  


What happens when you invoke a method on a nil pointer?

1 Answers  


What is delegate method?

1 Answers  


What is @dynamic in objective-c ?

1 Answers  


Explain your process for tracing and fixing a memory leak

1 Answers  


Find the letter count in UItextfield? Including first character?

1 Answers  


What is ios viewwillappear?

1 Answers  


What are the viewcontroller lifecycle in ios?

1 Answers  


What is nslayoutanchor?

1 Answers  


How to download xcode for iphone development?

1 Answers  


What is a memory leak?

1 Answers  


Categories