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 |
What are all the newly added frameworks iOS 4.3 to iOS 5.0?
what is your preferred programming language? Why? How long will it take you to learn a new programming language?
What happens when you invoke a method on a nil pointer?
What is delegate method?
What is @dynamic in objective-c ?
Explain your process for tracing and fixing a memory leak
Find the letter count in UItextfield? Including first character?
What is ios viewwillappear?
What are the viewcontroller lifecycle in ios?
What is nslayoutanchor?
How to download xcode for iphone development?
What is a memory leak?