What happens when you create a block?
Answer / Deepak Chaudhary
When you create a block in Objective-C, it is an anonymous function that can be assigned to a variable or passed as an argument to another function. The block is not executed immediately but is stored for later execution. Blocks are useful for handling asynchronous events, such as network requests or timer events.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to call a function in objective-c?
How to call function in objective-c?
How would I make a static strategy?
Is objective c garbage collected?
What is the purpose of managed object context (nsmanagedobjectcontext) in objective-c and how does it work?
Is swift or objective c better?
What is the major difference between objective c and swift?
Explain what is data encapsulation in objective-c?
What is .h and .m file in xcode?
How to initialize nsmutabledictionary in objective c?
What is typedef objective c?
What do you mean by category and when to use it?