10.1.60 upgrade guide
The 10.1.32 baseline is no longer maintained. If your project uses the 10.1.32 baseline, upgrade to the 10.1.60 baseline by following the steps below.
Initialize the container
-
Call the initialization method before the framework loads. Place this call in the
- (void)application:(UIApplication *)application beforeDidFinishLaunchingWithOptions:(NSDictionary *)launchOptionsmethod ofDTFrameworkInterface.
-
If your project uses the 10.1.32 baseline:
-
Update the paths for custom JSAPIs, preset offline packages, and package information by calling
initNebulaWithCustomPresetApplistPath. Move this call from theafterDidFinishLaunchingWithOptionsmethod to thebeforeDidFinishLaunchingWithOptionsmethod inDTFrameworkInterface.
-
Set the base class for all H5 pages, the global resource plan, the User Agent (UA), and signature verification settings. Configure these in the
- (void)application:(UIApplication *)application afterDidFinishLaunchingWithOptions:(NSDictionary *)launchOptionsmethod ofDTFrameworkInterfaceafter the container is initialized. Otherwise, the container default configurations overwrite them.
-
Container base class
-
Make sure the base class for all custom H5 pages is a subclass of
H5WebViewController.
-
If your original H5 base class implements the
backmethod, remove it.
Custom navigation bar
To customize the default navigation bar style, configure the back button to listen for the kNBEvent_Scene_NavigationItem_Left_Back_Create_Before event.
