Tell me something about objective-c blocks?



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

Post New Answer

More Objective-C Interview Questions

What are the 5 performance objectives?

1 Answers  


What is an objective fact?

1 Answers  


What can’t we put into an array or dictionary?

1 Answers  


What are the main objectives of training?

1 Answers  


Explain what is @synthesize in objective-c?

1 Answers  


What is objective writing?

1 Answers  


What is a process and thread?

1 Answers  


What are the different types of identifiers?

1 Answers  


What are the different types of protocols?

1 Answers  


What do you mean by dot notation?

1 Answers  


Can a static library (.a) contain resources like images, sound files etc?

1 Answers  


What is a .m file?

1 Answers  


Categories