Custom container base class

更新时间:
复制 MD 格式

The default VC base class for the container is NXDefaultViewController. If you need to customize the VC class for custom development, you can perform the steps below:

  1. The VC base class to customize must inherit NXDefaultViewController.

    image

  2. In the - (void)application:(UIApplication )application afterDidFinishLaunchingWithOptions:(NSDictionary )launchOptions of DTFrameworkInterface, set the base class of the container.

    Sample code:

    [MPNebulaAdapterInterfaceshareInstance].nebulaVeiwControllerClass = NSClassFromString(@"HXH5WebViewController");