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...


How do you define a block?



How do you define a block?..

Answer / Shambhu Nath Chaudhary

To define a block in Objective-C, use the `^{ ... }` syntax. Here's an example:n```objcnvoid (^myBlock)(NSString *param) = ^(NSString *param) {n NSLog(@"Parameter passed: %@", param);n};n``

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

What is nsarray objective c?

1 Answers  


What is .h and .m file in xcode?

1 Answers  


How dispatch_once runs only once?

1 Answers  


What is responder chain?

1 Answers  


what is gcd? What are advantages over nsthread?

1 Answers  


What is better objective c or swift?

1 Answers  


What does nonatomic mean?

1 Answers  


How to call function?

1 Answers  


What is the difference between method and type?

1 Answers  


What is the difference between nsstring and string?

1 Answers  


What is abi stability?

1 Answers  


Explain types of protocol?

1 Answers  


Categories