adspace
How to pass parameter to selector function in swift? : IOS Architect
Answer Posted / 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 View All Answers
What is dependency management tools?
Explain parent-child context setup. How does it work? What are the advantages?
What is latest ios version?
What is latest xcode version?
Why do all model object attributes get marked with @dynamic and not synthesised? What does @dynamic mean?
What is nsmanagedobjectcontext? What are the different concurrency types? Explain them.
Why do all model object attributes get marked with @dynamic and not synthesised?
What is latest version of ios?
What's the latest version of ios?
How to handle concurrency problems in core data?
What is the purpose of reuseidentifier?
In a single model, can I have few entities in one sqlite db file and remaining in another sqlite db file?
What are transient properties?
What are the different store migration options? How do they work?