What is autoclosure?



What is autoclosure?..

Answer / Rashmi Saroj

Autoclosure is a feature in Swift that automatically captures and remembers an expression (a closure) until it is actually invoked. This can be useful for passing trailing closure parameters to functions.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

What are nsautoreleasepool and how can we use them?

1 Answers  


What is lazy var?

1 Answers  


What is responder chain?

1 Answers  


What is the difference between category and extension in objective c?

1 Answers  


When would you use nsarray and nsmutablearray?

1 Answers  


What do you mean by synthesized in objective-c?

1 Answers  


How to implement in app purchase in ios objective c?

1 Answers  


What is the difference between polymorphism and abstraction?

1 Answers  


Mention which class can you use for parsing of xml in iphone?

1 Answers  


What is delegate in objective c?

1 Answers  


List out the methods used in nsurl connection?

1 Answers  


Explain types of protocol?

1 Answers  


Categories