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


Explain how to call a function in objective-c?



Explain how to call a function in objective-c?..

Answer / Prabhat Kumar Chaurasia

To call a function in Objective-C, you need an instance of the class that contains the function. After creating an instance, you can call the function using dot notation or square bracket notation. For example: `MyClass *myObject = [[MyClass alloc] init]; [myObject myFunction];` or `[myObject setValueForKey:@"myFunction"];`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

What is m files document management?

1 Answers  


What is the difference between nsstring and string?

1 Answers  


How to check array contains value in objective c?

1 Answers  


Does objective c have multiple inheritance? Why not? How to imitate various inheritance?

1 Answers  


What is the difference between weak and unowned?

1 Answers  


What is kvc and kvo?

1 Answers  


Is objective c and c the same?

1 Answers  


What is gcd objective c?

1 Answers  


Are callbacks closures?

1 Answers  


What does @synchronized() do?

1 Answers  


Is objective c the same as c++?

1 Answers  


What is a .m file in xcode?

1 Answers  


Categories