CN113886731A - Method for routing page jump based on iOS platform and application - Google Patents
Method for routing page jump based on iOS platform and application Download PDFInfo
- Publication number
- CN113886731A CN113886731A CN202111231609.6A CN202111231609A CN113886731A CN 113886731 A CN113886731 A CN 113886731A CN 202111231609 A CN202111231609 A CN 202111231609A CN 113886731 A CN113886731 A CN 113886731A
- Authority
- CN
- China
- Prior art keywords
- jump
- application
- app
- response
- routing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a method for routing a jump page based on an iOS platform and application thereof, and relates to the technical field of iOS development. Registering a route, loading a main configuration file after starting a system, configuring an interface needing to be jumped and a transferred parameter, a URL resource identifier and an internal resource identifier in each component, requesting input, receiving the route to perform request disassembly initialization, and distinguishing whether to cross application call or not by the route: if cross-application is needed, remotely accessing a Handler response and calling resources; and if the cross-application is not needed, locally accessing a Handler response, calling the resource, realizing the response output of the target entity, and routing the response of the return request. The jump mode of the invention is more uniform and free, the dependence on each component is removed, the complexity and the interdependence capability of the interaction between the H5 page and the App native page and between the module and the component are reduced, and the jump crash of the APP interface is prevented.
Description
Technical Field
The invention relates to the technical field of iOS development, in particular to a method for routing a jump page based on an i0S platform and application.
Background
With the increase of user requirements, the requirements on App user experience become higher and higher, however, modes such as modality jump Modal (Presented/dismis), navigation controller jump (Push/Pop), storage board jump (Segue) and uitabbviewcontroller main controller switching provided by the system cannot meet the requirements of the existing user experience and project "high cohesion, low coupling", in order to better cope with various requirements, developers change an App architecture from an original simple MVVM, VIPER and other complex architectures from the perspective of software engineering, and at this time, routing is needed to realize the jump between controllers. In the prior art, the interdependence of each component is strong, the complexity of interaction between an H5 page and an App native page and between a module and the component is high, and the APP interface jump is often broken down. In order to solve the above problems, it is particularly necessary to develop a method and application for routing a jump page based on the i0S platform.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a method and application for routing a jump page based on an iOS platform, wherein the jump mode is more uniform and free, the dependence on each component is eliminated, the complexity and the interdependency capability of the interaction between an H5 page and an App native page and between a module and the component are reduced, the collapse of APP interface jump is prevented, and the method and the application are easy to popularize and use.
In order to achieve the purpose, the invention is realized by the following technical scheme: a method for page jump based on iOS platform route includes the following steps:
(1) registering a route: loading a main configuration file after starting the system, wherein the main configuration file comprises a jump configuration, and if a specified jump path cannot be found in the main configuration file, jumping to a preset default webview interface;
(2) configuring an interface needing to be jumped and related parameters needing to be transferred in each component;
(3) URL resource identification and internal resource identification, and requesting input;
(4) receiving the route to perform request disassembly initialization;
(5) routing differentiation whether to invoke across applications: if cross-application is needed, remotely accessing a Handler response and calling resources; if the cross-application is not needed, locally accessing a Handler response and calling resources;
(6) implementing a response output of the target entity;
(7) the route returns the response of the request, ending.
An application for routing a jump page based on an iOS platform comprises the following components:
(1) the method is used for the ViewController jump among all APP components, and the jump logic of the APP and the logic jump among the APP internal componentization are configured by dynamically issuing a configuration file;
(2) jumping among the APP is achieved;
(3) the server can dynamically configure the interface and parameters of the jump.
The invention has the beneficial effects that: the jumping mode of the invention is more uniform and free, the dependence on each component is removed, the complexity and the interdependence capability of the interaction between the H5 page and the App native page and between the module and the component are reduced, the collapse of the APP interface jumping is prevented, the requirements of high cohesion and low coupling of the project are realized, and the application prospect is wide.
Drawings
The invention is described in detail below with reference to the drawings and the detailed description;
FIG. 1 is a flow chart of the present invention.
Detailed Description
In order to make the technical means, the creation characteristics, the achievement purposes and the effects of the invention easy to understand, the invention is further described with the specific embodiments.
Referring to fig. 1, the following technical solutions are adopted in the present embodiment: a method for routing jump pages based on an i0S platform comprises the following steps:
(1) registering a route: and loading a main configuration file after the system is started, wherein the main configuration file contains a jump configuration, and if the specified jump path cannot be found in the main configuration file, jumping to a preset default webview interface.
A main configuration file:
(2) and configuring interfaces needing to jump and relevant parameters needing to be transferred in each component.
(3) URL resource identification and internal resource identification, and request input.
(4) And receiving the route to perform request disassembly initialization.
(5) Routing differentiation whether to invoke across applications: if cross-application is needed, remotely accessing a Handler response and calling resources; and if the cross-application is not needed, locally accessing a Handler response and calling the resource.
(6) And realizing the response output of the target entity.
(7) The route returns the response of the request, ending.
An application based on an iOS platform routing jump page has a wide application scene, and comprises the following components:
(1) the method is used for the ViewController jump among all APP components, and jump logic of the APP and logic jump among APP internal componentization can be configured by dynamically issuing a configuration file.
(2) Jump among the APPs is realized, an APP island is broken, barriers of H5 application and native application are opened, and data transfer among the APPs is realized.
(3) The server can dynamically configure the interface and parameters of the jump.
(4) When the App on-line suddenly encounters an emergency bug, the page can be dynamically upgraded to H5 or directly replaced by a local error interface, so that the function of preventing interface jump crash is achieved.
The present embodiment
The method has the advantages that the skipping modes are more uniform and more free through the realization of routing, the problems of the interaction complexity between an H5 page and an App native page, the interaction complexity between modules and components, the mutual access between the App and the App, the page skipping inside the App, the module scheduling and component loading, the logic of removing hard coding by a pushing and informing system, the dynamic access of native resources, the skipping collapse of an APP interface and the like are solved, the capability of removing the mutual dependence of services is provided for realizing a more complex architecture MVVM or VIPER architecture of the App, the isolation of each service is realized to manufacture an independent component, the modular development is realized, the project can be better maintained in the later period, the characteristics of high cohesion and low coupling of the system can be kept, the maintenance difficulty of the subsequent App development is reduced, and the method has a wide market application prospect.
The foregoing shows and describes the general principles and broad features of the present invention and advantages thereof. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.
Claims (2)
1. A method for page jump routing based on an iOS platform is characterized by comprising the following steps:
(1) registering a route: loading a main configuration file after starting the system, wherein the main configuration file comprises a jump configuration, and if a specified jump path cannot be found in the main configuration file, jumping to a preset default webview interface;
(2) configuring an interface needing to be jumped and related parameters needing to be transferred in each component;
(3) URL resource identification and internal resource identification, and requesting input;
(4) receiving the route to perform request disassembly initialization;
(5) routing differentiation whether to invoke across applications: if cross-application is needed, remotely accessing a Handler response and calling resources; if the cross-application is not needed, locally accessing a Handler response and calling resources;
(6) implementing a response output of the target entity;
(7) the route returns the response of the request, ending.
2. An application of routing jump page based on i0S platform, comprising:
(1) the method is used for the ViewController jump among all APP components, and the jump logic of the APP and the logic jump among the APP internal componentization are configured by dynamically issuing a configuration file;
(2) jumping among the APP is achieved;
(3) and the server dynamically configures the interface and the parameters of the jump.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111231609.6A CN113886731A (en) | 2021-10-22 | 2021-10-22 | Method for routing page jump based on iOS platform and application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111231609.6A CN113886731A (en) | 2021-10-22 | 2021-10-22 | Method for routing page jump based on iOS platform and application |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113886731A true CN113886731A (en) | 2022-01-04 |
Family
ID=79004186
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111231609.6A Pending CN113886731A (en) | 2021-10-22 | 2021-10-22 | Method for routing page jump based on iOS platform and application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113886731A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115687827A (en) * | 2022-11-15 | 2023-02-03 | 中电金信软件有限公司 | Method, device, equipment and medium for communicating native page and H5 page path |
CN117793001A (en) * | 2023-12-28 | 2024-03-29 | 北京虎嗅信息科技股份有限公司 | Analysis and jump method of routing component |
-
2021
- 2021-10-22 CN CN202111231609.6A patent/CN113886731A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115687827A (en) * | 2022-11-15 | 2023-02-03 | 中电金信软件有限公司 | Method, device, equipment and medium for communicating native page and H5 page path |
CN115687827B (en) * | 2022-11-15 | 2023-08-25 | 中电金信软件有限公司 | Method, device, equipment and medium for communicating native page and H5 page path |
CN117793001A (en) * | 2023-12-28 | 2024-03-29 | 北京虎嗅信息科技股份有限公司 | Analysis and jump method of routing component |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109002362B (en) | Service method, device and system and electronic equipment | |
US10540310B2 (en) | Selectable peripheral logic in programmable apparatus | |
CN113886731A (en) | Method for routing page jump based on iOS platform and application | |
WO2012122884A1 (en) | Open plug-in management platform and plug-in management method implemented on browser | |
CN107203465B (en) | System interface testing method and device | |
CN107203419A (en) | Intermodule call method, apparatus and system in application program | |
US20080109828A1 (en) | Application component communication apparatus of sca-based system and method thereof | |
CN104317591A (en) | OSGi (open service gateway initiative)-based web interface frame system and web business processing method thereof | |
US20160198018A1 (en) | Mobile device for executing radio application | |
CN111443985A (en) | Method and equipment for instantiating virtual network function | |
CN110532106A (en) | The means of communication, device, equipment and storage medium between process | |
CN109343970B (en) | Application program-based operation method and device, electronic equipment and computer medium | |
US20080216050A1 (en) | Method and System for Accessing a Resource Implemented in a Computer Network | |
CN102402455A (en) | Method and device for calling dynamic link library (DLL) | |
WO2024093731A1 (en) | Automotive open system architecture, data processing method and on-board device | |
EP3640805A1 (en) | Method and apparatus for implementing white-box otn hardware device, and storage medium | |
CN112448833B (en) | Multi-management-domain communication method and device | |
US20040024856A1 (en) | Method and system for a services environment management engine | |
EP2450793A1 (en) | Method of defining state transitions in a software and application control management object | |
CN114911538B (en) | Starting method of running system and computing equipment | |
CN109977053A (en) | The network-based shared I/O interface design method of one kind and system | |
CN108563475A (en) | Operation method, device and the storage medium of application program | |
CN101246421A (en) | Universal frame work based on workflow engine | |
US9641956B2 (en) | Dynamic flow management | |
CN113778706A (en) | Inter-core communication method of operating system based on AMP architecture |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |