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 insert a block?



How do you insert a block?..

Answer / Sachin Tyagi

To insert a block in Objective-C, you use the `^{ ... }` syntax. Here is an example of how to define and insert a block:n```objcnvoid (^myBlock)(NSString *param) = ^(NSString *param) {n NSLog(@"Parameter passed: %@", param);n};nmyBlock(@"Hello, World!");n``

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

What is a class in objective c?

1 Answers  


What is meant by not thread safe?

1 Answers  


What is objective point of view?

1 Answers  


Is c++ objective c?

1 Answers  


How to implement in app purchase in ios objective c?

1 Answers  


What is dot notation?

1 Answers  


How much does m files cost?

1 Answers  


What does the objective c program fundamentally comprise of?

1 Answers  


What is protocol with example?

1 Answers  


What is the use of category in objective-c?

1 Answers  


What is differences between nsnull and nil in objective c?

1 Answers  


What are the attributes of category?

1 Answers  


Categories