Tell me something about objective-c blocks?
Answer / Ankur Sudhanshu
Objective-C blocks (also known as closures) are self-contained chunks of functionality that can be passed around and used in your code. They allow you to write anonymous functions, which can capture and store references to any constants and variables from the context in which they were created. Blocks are useful for creating callbacks, handling asynchronous events, and implementing custom algorithms.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why swift is better than objective c?
When should you call dealloc method?
What does __ block do?
What is enum in objective c?
What is objective c programming used for?
What are the important data types found in objective-c?
What can objective c be used for?
What are static attributes?
Is struct a class?
Explain what is the principle distinction between the function calls and messages?
Can we implement dealloc in arc? If yes, what is the need to do that?
What is the use of objective c?