Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What are blocks and how are they used?



What are blocks and how are they used?..

Answer / Vikrant Upadhyay

Blocks in Objective-C are anonymous functions that can be defined inline and passed around like any other object. They consist of a sequence of statements enclosed within curly braces `{}`. Blocks are commonly used for: 1. Event handling (e.g., tap gestures, button clicks). 2. Asynchronous processing with GCD (Grand Central Dispatch). 3. Customizing UI animations.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

Is there function overloading in objective-c?

1 Answers  


Who calls dealloc method? Can we implement dealloc in arc?

1 Answers  


What is difference between method and constructor?

1 Answers  


What are the adavantages of gcd over nsthread?

1 Answers  


How to call function in objective-c?

1 Answers  


What is an accessor method?

1 Answers  


What is data encapsulation in objective-c?

1 Answers  


What is an example of category?

1 Answers  


What is objective c programming used for?

1 Answers  


Will objective c be deprecated?

1 Answers  


What are the advantages of swift over objective c?

1 Answers  


Can I write some c++ function in same .m file?

1 Answers  


Categories