WHAT IS DYNAMIC?

Tarun Kumar

Total Post:107

Points:535
Posted by  Tarun Kumar
 554  View(s)
Ratings:
Rate this:
  1. Tarun Kumar

    Post:107

    Points:535
    What is dynamic?

    You use the @dynamic keyword to tell the compiler that you will fulfill the API contract implied by a property either by providing method implementations directly or at runtime using other mechanisms such as dynamic loading of code or dynamic method resolution. It suppresses the warnings that the compiler would otherwise generate if it can’t find suitable implementations. You should use it only if you know that the methods will be available at runtime.

    [ In other words, the @dynamic keyword tells the compiler that you will provide accessor methods dynamically at runtime. This can be done using the Objective-C runtime functions.]

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!