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

Can we have multiple uiwindows in ios?

1 Answers  


Is struct a class?

1 Answers  


What is a hash string?

1 Answers  


What is #import?

1 Answers  


Is objective c and c the same?

1 Answers  


What is toll-free bridging? When is it useful?

1 Answers  


What is nonatomic in objective c?

1 Answers  


Is objective c superset of c?

1 Answers  


What number distinctive annotations is accessible in objective-c?

1 Answers  


What does the objective c program fundamentally comprise of?

1 Answers  


what is gcd? What are advantages over nsthread?

1 Answers  


Is objective c compiled?

1 Answers  


Categories