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 |
Is objective c dynamically typed?
Is method and function same?
What is difference between null and nil?
Can we implement dealloc in arc? If yes, what is the need to do that?
What is nsmutabledictionary?
Can we have multiple uiwindows in ios?
Is reference counting garbage collection?
What is objective c runtime?
What is the difference between underscore and self (i.e self.xx and _xx) ?
What is enum constant?
What is a delegate objective c?
What is main storyboard?