Swift |
Oc |
*swift has a namespace concept, so-called namespaces that can be called from one another in the same namespace without importing. The same name can be used in different namespaces The SWIFT project is a namespace |
* Determine if a class, protocol, method |
* Runtime gets the class attribute list, the property name, the C-language string to OC string * Basic data type, not selectable in OC, if defined as optional in swift, run-time is also not available, the use of KVC crashes, so the basic data type needs to be assigned an initial value The *private property, which uses the runtime, also gets the property, which also causes KVC to crash |
* Run-time run-time execution method Objects in *oc are exposed at run time by all property methods and are available through the run-time method |
|
|
The need to pay attention to the knowledge points in swift and OC