Load class file dynamically (Objective-C)

To create a core development environment for CoreGraphics (which currently consists of making several build and launch attempts to achieve the desired effect), I was curious if there was a way to dynamically load the class file at runtime.

Like the Java class loader, I was hoping to use an NSBundle or something similar to dynamically load a class into memory.

The idea would be to set up a sandbox project, and only to compile and then dynamically reload the class without having to stop and restart the host application.

+3
source share
1 answer

NSBundle . -load.

, . ( -unload -load.) , , , - +load +initialize. .

+3

Source: https://habr.com/ru/post/1725694/


All Articles