CN111694624A - Rollback display processing method, apparatus, device and medium - Google Patents

Rollback display processing method, apparatus, device and medium Download PDF

Info

Publication number
CN111694624A
CN111694624A CN201910190551.1A CN201910190551A CN111694624A CN 111694624 A CN111694624 A CN 111694624A CN 201910190551 A CN201910190551 A CN 201910190551A CN 111694624 A CN111694624 A CN 111694624A
Authority
CN
China
Prior art keywords
layer
initial
identification information
display
task
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.)
Granted
Application number
CN201910190551.1A
Other languages
Chinese (zh)
Other versions
CN111694624B (en
Inventor
王岳晨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910190551.1A priority Critical patent/CN111694624B/en
Priority to PCT/CN2020/070691 priority patent/WO2020181912A1/en
Publication of CN111694624A publication Critical patent/CN111694624A/en
Application granted granted Critical
Publication of CN111694624B publication Critical patent/CN111694624B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the disclosure discloses a method, a device, equipment and a medium for processing rollback display, which comprise the following steps: creating at least three layers of task VC corresponding to the display task, wherein the task VC comprises: an initial layer VC, at least one transition layer VC and an end layer VC; in the display process of the display task, assigning the identification information of the initial layer VC to the lower layer VC layer by layer; and if the response of the ending task aiming at the ending layer VC is detected, acquiring the identification information of the initial layer VC with the layer-by-layer assignment from the ending layer VC according to a preset completion callback attribute in the ending layer VC, and returning the interface to the initial layer VC for displaying. The embodiment of the disclosure can improve the accuracy and convenience of the rollback process.

Description

Rollback display processing method, apparatus, device and medium
Technical Field
The present disclosure relates to image display technologies, and in particular, to a method, an apparatus, a device, and a medium for fallback display processing.
Background
In the use process of the intelligent device, jumping among view interfaces is basic operation for realizing the functions of the application program.
Currently, in the iOS system, jumping between view interfaces is implemented by stacking and popping View Controllers (VCs) by a Navigation Controller (Navigation Controller), wherein the Navigation Controller is a Controller that manages at least one VC in the form of a stack, the Navigation Controller is the Controller that controls the hierarchical relationship of jumping and returning between VCs, and the VC is the Controller responsible for managing the view hierarchy, and each VC manages one view hierarchy, including creating views in the view hierarchy and processing related user events, and adding the entire view hierarchy to an application window. Generally, in a navigation controller, a method for implementing a jump from a currently displayed VC to a target VC is as follows: and circularly traversing the target VC in the VC stack of the navigation controller, and realizing the operation of jumping from the current display VC to the target VC by calculating the hierarchical relationship between the current display VC and the target VC and performing pop-up operation.
The above method has disadvantages in that: since the multiplexing operation of the VC may generate multiple copies of the target VC, when calculating the hierarchical relationship between the currently displayed VC and the target VC, a large number of auxiliary judgment conditions need to be added, which results in a complicated calculation manner and a high error rate of results, so that the interface finally jumped or backed is not the interface corresponding to the target VC.
Disclosure of Invention
The embodiment of the disclosure provides a rollback display processing method, device, equipment and medium, so as to improve the accuracy and convenience of a rollback process.
In a first aspect, an embodiment of the present disclosure provides a fallback display processing method, including:
creating at least three layers of task VCs corresponding to the display tasks, wherein the task VCs comprise: an initial layer VC, at least one transition layer VC and an end layer VC;
in the display process of the display task, assigning the identification information of the initial layer VC to a lower layer VC layer by layer;
and if the ending task response aiming at the ending layer VC is detected, acquiring the identification information of the initial layer VC with the layer-by-layer assignment from the ending layer VC according to a preset completion callback attribute in the ending layer VC, and returning an interface to the initial layer VC for displaying.
Optionally, in the process of displaying the display task, assigning the identification information of the initial layer VC to the lower layer VC layer by layer, including:
if a view switching instruction entering a next-level transition layer VC from the initial layer VC is detected, displaying the next-level transition layer VC;
and obtaining the identification information of the initial layer VC and assigning the identification information to the target parameter in the next-stage transition layer VC.
Optionally, in the process of displaying the display task, assigning the identification information of the initial layer VC to the lower layer VC layer by layer, further including:
if a view switching instruction entering a second transition layer VC of a next stage from a first transition layer VC is detected, displaying the second transition layer VC;
acquiring parameter values of the target parameters in the first transition layer VC as identification information of the initial layer VC;
and assigning the parameter value to a target parameter in the second transition layer VC.
Optionally, in the process of displaying the display task, assigning the identification information of the initial layer VC to the lower layer VC layer by layer, further including:
if a view switching instruction for entering a next-stage end layer VC from a third transition layer VC is detected, displaying the end layer VC;
acquiring parameter values of the target parameters in the third transition layer VC as identification information of the initial layer VC;
and assigning the parameter value to a target parameter in the end layer VC.
Optionally, obtaining, according to a post-completion callback attribute preconfigured in the end layer VC, identification information of the initial layer VC that is assigned layer by layer from the end layer VC, and returning an interface to the initial layer VC for display includes:
executing a method for returning to a target VC preset in the end layer VC according to the call-back attribute when the interface is finished so as to return the interface to the initial layer VC for displaying;
and the target VC to be rolled back in the method for rolling back to the target VC is associated with the parameter value of the target parameter in the end layer VC.
In a second aspect, an embodiment of the present disclosure further provides a rollback display processing apparatus, including:
a creating module, configured to create at least three layers of task VCs corresponding to display tasks, where a task VC includes: an initial layer VC, at least one transition layer VC and an end layer VC;
the assignment module is used for assigning the identification information of the initial layer VC to a lower layer VC layer by layer in the display process of the display task;
and the rollback module is used for acquiring the identification information of the initial layer VC with value assignment layer by layer from the end layer VC according to a preset completion callback attribute in the end layer VC and rolling back an interface to the initial layer VC for display if a response of the end task aiming at the end layer VC is detected.
Optionally, the assignment module includes:
the first display unit is used for displaying the next-level transition layer VC if a view switching instruction for entering the next-level transition layer VC from the initial layer VC is detected;
and the first assignment unit is used for acquiring the identification information of the initial layer VC and assigning the identification information to the target parameter in the next-stage transition layer VC.
Optionally, the assignment module further includes:
the second display unit is used for displaying the second transition layer VC if a view switching instruction of entering the next-stage second transition layer VC from the first transition layer VC is detected;
a first obtaining unit, configured to obtain a parameter value of the target parameter in the first transition layer VC as identification information of the initial layer VC;
and the second assignment unit is used for assigning the parameter value to a target parameter in the second transition layer VC.
Optionally, the assignment module further includes:
a third display unit, configured to display an end layer VC if a view switching instruction from a third transition layer VC to the end layer VC of a next stage is detected;
a second obtaining unit, configured to obtain a parameter value of the target parameter in the third transition layer VC as identification information of the initial layer VC;
and the third assignment unit is used for assigning the parameter value to the target parameter in the end layer VC.
Optionally, the rollback module includes:
a rollback unit, configured to execute a method for rolling back to a target VC, which is pre-configured in the end layer VC, according to the completion callback attribute, so as to roll back an interface to the initial layer VC for display;
and the target VC to be rolled back in the method for rolling back to the target VC is associated with the parameter value of the target parameter in the end layer VC.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement a fallback display processing method according to any embodiment of the disclosure.
In a fourth aspect, the embodiments of the present disclosure further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a fallback display processing method according to any embodiment of the present disclosure.
The disclosed embodiments create an initial layer VC, at least one transition layer VC and an end layer VC corresponding to a display task, and assigning the identification information of the initial layer VC to the lower layer VC layer by layer in the display process of the display task, when detecting the end task response aiming at the end layer VC, calling back the attribute when the end task response is configured in advance in the end layer VC, acquiring the identification information of the initial layer VC assigned layer by layer from the end layer VC, realizing the operation of returning the interface to the initial layer VC for displaying, namely, in the embodiment of the present disclosure, the identification information of the initial layer VC is assigned to the lower layer VC layer by layer, so that the end layer VC does not need to perform complex hierarchical computation when returning to the initial layer VC, and only needs to trigger execution of the specified operation associated with the identification information of the initial layer VC through the preconfigured callback-on-completion attribute, so as to return the interface to the initial layer VC for display. The problem that in the prior art, when the hierarchical relationship between the end layer VC and the initial layer VC is calculated, the auxiliary judgment conditions are too many, the calculation mode is complex, the error rate of the result is high, and the final jump or rollback interface is not the interface corresponding to the initial layer VC is solved, and the effects of improving the accuracy and convenience of the rollback process are achieved.
Drawings
Fig. 1 is a flowchart of a rollback display processing method according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a rollback display processing method according to a second embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a rollback display processing apparatus according to a third embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the disclosure and are not limiting of the disclosure. It should be further noted that, for the convenience of description, only some of the structures relevant to the present disclosure are shown in the drawings, not all of them. In the following embodiments, optional features and examples are provided in each embodiment, and various features described in the embodiments may be combined to form a plurality of alternatives, and each numbered embodiment should not be regarded as only one technical solution.
Example one
Fig. 1 is a flowchart of a rollback display processing method according to an embodiment of the present disclosure, where the present embodiment is applicable to a case of implementing interface skip or rollback, the method may be executed by a rollback display processing apparatus, the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be configured in an electronic device, and typically, the electronic device is a smart phone, a tablet computer, and the like that are adapted to an iOS operating system. As shown in fig. 1, the method specifically includes the following steps:
step 110, creating at least three layers of task VC corresponding to the display task, wherein the task VC comprises: an initial layer VC, at least one transition layer VC, and an end layer VC.
The display task refers to a display task of an interface corresponding to a series of view levels when a complete function is realized, and comprises display and jump tasks at each level of view level. The task VC is a controller that manages all view hierarchies upon completion of the display task, and its main role is to create views in each view hierarchy and handle related user events, as well as to add the entire view hierarchy to the application window. The task VC comprises the following steps: the system comprises an initial layer VC, at least one transition layer VC and an end layer VC, wherein the initial layer VC manages a first layer view level of a display task, the end layer VC manages a last layer view level of the display task, and the at least one transition layer VC is arranged between the initial layer VC and the end layer VC and used for managing other view levels in the display task step by step so as to realize a complete function corresponding to the display task.
In a specific example, the complete function is a function that a user selects a commodity in a shopping cart interface in a shopping application and jumps back to the shopping cart interface after settlement payment, wherein an initial layer VC manages a shopping cart view level, an end layer VC manages a view level for prompting the user of successful payment, and a transition layer VC manages a settlement view level and a payment mode selection view level in the payment process.
In this embodiment, when it is determined that a display task corresponding to a complete function is to be processed, a corresponding VC stack, and an initial layer VC, at least one transition layer VC, and an end layer VC corresponding to the display task are first established in a navigation controller, and in a display process of the display task, the initial layer VC, the transition layer VC, and the end layer VC are called by the navigation controller according to an actual operation of a user, and display of a view level corresponding to a VC at the top of a stack in the VC stack is achieved by performing pop-up and pop-up operations in the VC stack.
And 120, assigning the identification information of the initial layer VC to the lower layer VC layer by layer in the display process of the display task.
The identification information of the initial layer VC is a name associated with the initial layer VC, and is used to form a corresponding relationship with the initial layer VC, that is, once the identification information appears in subsequent operations, a corresponding operation of calling the initial layer VC may be performed, for example, the identification information of the initial layer VC is defined as VC 1.
In this embodiment, when the navigation controller is triggered by actual operation of a user to call and display each layer of VC in the display process of the display task, the identification information of the initial layer of VC is assigned to the lower layer of VC layer by layer as the display task continues, that is, the identification information of the initial layer of VC is assigned to the lower layer of VC while the lower layer of VC is displayed, so as to form an association relationship between the lower layer of VC and the initial layer of VC.
Step 130, if a task ending response for the ending layer VC is detected, acquiring identification information of the initial layer VC with value assigned layer by layer from the ending layer VC according to a completion callback attribute pre-configured in the ending layer VC, and returning the interface to the initial layer VC for display.
The task ending response of the end layer VC is generally triggered by an event, for example, 5 seconds of stopping on the payment success interface is used as an event for triggering task ending response, and when the payment success interface corresponding to the end layer VC stops for 5 seconds, a task ending response for the end layer VC is sent out, where the task ending response is used to trigger a completion time callback attribute preconfigured in the end layer VC. The callback attribute is attribute information that is pre-configured in the end layer VC and used for triggering execution of a specified operation when a task ends, in this embodiment, the specified operation is: and in the execution process of the specified operation, acquiring identification information of the initial layer VC assigned layer by layer from the end layer VC by means of parameter calling and the like, specifically defining the target layer VC in the specified operation as the end layer VC, and finally executing the operation of returning the interface to the initial layer VC for display.
The present embodiment creates an initial layer VC corresponding to a display task, at least one transition layer VC and an end layer VC, and assigning the identification information of the initial layer VC to the lower layer VC layer by layer in the display process of the display task, when detecting the end task response aiming at the end layer VC, calling back the attribute when the end task response is configured in advance in the end layer VC, acquiring the identification information of the initial layer VC assigned layer by layer from the end layer VC, realizing the operation of returning the interface to the initial layer VC for displaying, that is, in this embodiment, the identification information of the initial layer VC is assigned to the lower layer VC layer by layer, so that the end layer VC does not need to perform complex hierarchical computation when returning to the initial layer VC, and only needs to trigger execution of the specified operation associated with the identification information of the initial layer VC through the preconfigured callback-on-completion attribute, so as to return the interface to the initial layer VC for display. The problem that in the prior art, when the hierarchical relationship between the end layer VC and the initial layer VC is calculated, the auxiliary judgment conditions are too many, the calculation mode is complex, the error rate of the result is high, and the final jump or rollback interface is not the interface corresponding to the initial layer VC is solved, and the effects of improving the accuracy and convenience of the rollback process are achieved.
Example two
Fig. 2 is a flowchart of a rollback display processing method according to a second embodiment of the present disclosure. This embodiment may be combined with each alternative in one or more of the above embodiments, and provides a specific execution step of assigning the identification information of the initial layer VC to the lower layer VC layer by layer in the display process of the display task. In the display process of the display task, the identification information of the initial layer VC is assigned to the lower layer VC layer by layer, which may be: if a view switching instruction entering a next-stage transition layer VC from an initial layer VC is detected, displaying the next-stage transition layer VC; and obtaining the identification information of the initial layer VC and assigning the identification information to the target parameter in the next-stage transition layer VC.
Alternatively, it may be: if a view switching instruction entering a next-stage second transition layer VC from the first transition layer VC is detected, displaying the second transition layer VC; acquiring a parameter value of a target parameter in a first transition layer VC as identification information of an initial layer VC; the parameter values are assigned to target parameters in the second transition layer VC.
Alternatively, it may be: if a view switching instruction for entering a next-level ending layer VC from a third transition layer VC is detected, displaying the ending layer VC; acquiring a parameter value of a target parameter in a third transition layer VC as identification information of an initial layer VC; the parameter values are assigned to target parameters in the end layer VC.
As shown in fig. 2, the method specifically includes the following steps:
step 210, creating at least three layers of task VCs corresponding to the display task, wherein the task VCs comprise: an initial layer VC, at least one transition layer VC, and an end layer VC.
In this embodiment, taking the example of uploading data in the cloud application, all technical solutions of this embodiment are described. In the cloud application, the display task is as follows: and when the progress in the uploading progress interface is 100%, skipping to an interface prompting the user to upload successfully, staying on the uploading successful interface for 5 seconds, and returning to the current uploading data list interface for the user to continuously upload data. The VC at the initial layer corresponds to a view level of an uploadable data list, the VC at the transition layer corresponds to a view level of a storage folder list and a view level of an uploading progress, and the VC at the ending layer corresponds to a view level for prompting a user to upload a view successfully.
And step 220, if a view switching instruction for entering the next-level transition layer VC from the initial layer VC is detected, displaying the next-level transition layer VC.
The view switching instruction is an instruction for triggering the navigation controller to call and display each layer of VC by actual operation of a user.
Continuing the specific example in the above steps, in the cloud application, after a user selects data to be uploaded through a current data list interface capable of uploading, clicking an icon corresponding to a function of selecting a storage position, triggering the navigation controller to send a view switching instruction for entering a next-level transition layer VC from an initial layer VC, and pressing a list view hierarchy of a storage folder into a VC stack for display through a stacking operation.
And step 230, obtaining the identification information of the initial layer VC and assigning the identification information to the target parameter in the next-stage transition layer VC.
Continuing the specific example in the above step, after the storage folder list interface is displayed, the navigation controller obtains identification information of the view level of the uploadable data list, and assigns the identification information to a target parameter of the view level of the storage folder list, where the target parameter is a variable parameter storing the identification information of the initial layer VC, and the target parameter exists in other layers of VCs except the initial layer VC.
And 240, if a view switching instruction for entering a next-level second transition layer VC from the first transition layer VC is detected, displaying the second transition layer VC.
In the above example, the first transition layer VC corresponds to a storage folder list view level, and the second transition layer VC corresponds to an upload progress view level.
Continuing the specific example in the above steps, in the cloud application, after a user selects a specific position for data uploading in the storage folder list interface, clicking an icon corresponding to the data uploading function, which triggers the navigation controller to send a view switching instruction for entering the second transition layer VC from the first transition layer VC, and through a stacking operation, pressing the uploading progress view level into the VC stack for display.
And step 250, acquiring a parameter value of a target parameter in the first transition layer VC as identification information of the initial layer VC.
Continuing the specific example in the above step, after the uploading progress interface is displayed, the navigation controller obtains the parameter value of the target parameter in the view level of the storage folder list, where the parameter value is the identification information of the initial layer VC.
And step 260, assigning the parameter value to the target parameter in the second transition layer VC.
Therefore, the identification information of the initial layer VC is assigned to the first transition layer VC from the initial layer VC, and then assigned to the second transition layer VC from the first transition layer VC.
Step 270, if a view switching instruction from the third transition layer VC to the end layer VC of the next level is detected, displaying the end layer VC.
In the above example, the third transition layer VC corresponds to an upload progress view level.
Continuing the specific example in the above steps, in the cloud application, when the progress in the uploading progress interface is 100%, triggering the navigation controller to send a view switching instruction entering from the third transition layer VC to the end layer VC, and pushing the view level prompting the user to successfully upload into the VC stack for display through the stacking operation.
And step 280, acquiring a parameter value of a target parameter in the third transition layer VC as the identification information of the initial layer VC.
Step 290, assigning the parameter value to the target parameter in the end layer VC.
Therefore, the process of assigning the identification information of the initial layer VC to the end layer VC layer by layer is realized.
In step 2100, if a task ending response for the end layer VC is detected, according to a pre-configured completion callback attribute in the end layer VC, acquiring identification information of the initial layer VC with value assigned layer by layer from the end layer VC, and returning the interface to the initial layer VC for display.
Continuing the specific example in the above step, in the cloud application, staying 5 seconds in the upload success interface as an event for triggering an end task response, and sending an end task response for the end layer VC after a prompt user corresponding to the end layer VC stays 5 seconds in the upload success view level, where the end task response is used for triggering an operation of returning the interface to the upload data list view level for display.
Optionally, obtaining, from the end layer VC, identification information of the initial layer VC that is assigned layer by layer according to a pre-configured post-completion callback attribute in the end layer VC, and returning the interface to the initial layer VC for display includes:
according to the attribute of callback when the interface is finished, executing a method for returning to a target VC, which is configured in advance in an end layer VC, so as to return the interface to an initial layer VC for display;
the target VC to be rolled back in the method for rolling back to the target VC is associated with the parameter value of the target parameter in the end layer VC.
The method for returning to the target VC may be a method for implementing the level jump, which is pre-packaged in the navigation controller, or a method for implementing the level jump, which is implemented by programming of a program developer.
In the optional technical scheme, the method for executing the fallback to the target VC is triggered by calling back the attribute when the method is completed, and when the method is executed, a specific parameter for determining the target VC needs to be called, and the specific parameter is associated with a parameter value of a target parameter in an end layer VC, so that the purpose that the target VC corresponds to an initial layer VC is achieved, thereby realizing the operation of displaying the interface fallback to the initial layer VC, improving the method for realizing the fallback to the target VC by calculating a hierarchical relationship in the prior art, greatly reducing the operation amount in the fallback display process, and improving the correctness of the fallback result.
For details, please refer to the foregoing embodiments, which are not described herein.
In the technical scheme, a specific execution step of assigning the identification information of the initial layer VC to the lower layer VC layer by layer in the display process of the display task is provided, so that the identification information of the initial layer VC can be accurately assigned to the lower layer VC until the identification information of the initial layer VC reaches the end layer VC, and an interface can be accurately returned to the initial layer VC for display.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a rollback display processing apparatus according to a fourth embodiment of the present disclosure, which is applicable to a case of implementing inter-interface jumping or rollback. The apparatus may be implemented in software and/or hardware, and may be configured in an electronic device, typically a smart phone, a tablet computer, etc. adapted to the iOS operating system. As shown in fig. 3, the apparatus may include: a creation module 310, an assignment module 320, and a rollback module 330, wherein,
a creating module 310, configured to create at least three layers of task VCs corresponding to display tasks, where a task VC includes: an initial layer VC, at least one transition layer VC and an end layer VC;
the assignment module 320 is configured to assign the identification information of the initial layer VC to the lower layer VC layer by layer in the display process of the display task;
and a rollback module 330, configured to, if a task ending response for the ending layer VC is detected, obtain, according to a post-completion callback attribute preconfigured in the ending layer VC, identification information of the initial layer VC that is assigned layer by layer from the ending layer VC, and rollback the interface to the initial layer VC for display.
Optionally, the assigning module 320 includes:
the first display unit is used for displaying the next-level transition layer VC if a view switching instruction for entering the next-level transition layer VC from the initial layer VC is detected;
and the first assignment unit is used for acquiring the identification information of the initial layer VC and assigning the identification information to the target parameter in the next-stage transition layer VC.
Optionally, the assigning module 320 further includes:
a second display unit, configured to display the second transition layer VC if a view switching instruction from the first transition layer VC to the second transition layer VC of the next stage is detected;
a first obtaining unit, configured to obtain a parameter value of a target parameter in a first transition layer VC as identification information of an initial layer VC;
and the second assignment unit is used for assigning the parameter value to the target parameter in the second transition layer VC.
Optionally, the assigning module 320 further includes:
a third display unit, configured to display the end layer VC if a view switching instruction from the third transition layer VC to the end layer VC of the next stage is detected;
a second obtaining unit, configured to obtain a parameter value of a target parameter in a third transition layer VC as identification information of an initial layer VC;
and the third assignment unit is used for assigning the parameter value to the target parameter in the end layer VC.
Optionally, the rollback module 330 includes:
the rollback unit is used for executing a method for rolling back to a target VC preset in an end layer VC according to the callback attribute when the interface is finished so as to roll back the interface to an initial layer VC for displaying;
the target VC to be rolled back in the method for rolling back to the target VC is associated with the parameter value of the target parameter in the end layer VC.
The present embodiment creates an initial layer VC corresponding to a display task, at least one transition layer VC and an end layer VC, and assigning the identification information of the initial layer VC to the lower layer VC layer by layer in the display process of the display task, when detecting the end task response aiming at the end layer VC, calling back the attribute when the end task response is configured in advance in the end layer VC, acquiring the identification information of the initial layer VC assigned layer by layer from the end layer VC, realizing the operation of returning the interface to the initial layer VC for displaying, that is, in this embodiment, the identification information of the initial layer VC is assigned to the lower layer VC layer by layer, so that the end layer VC does not need to perform complex hierarchical computation when returning to the initial layer VC, and only needs to trigger execution of the specified operation associated with the identification information of the initial layer VC through the preconfigured callback-on-completion attribute, so as to return the interface to the initial layer VC for display. The problem that in the prior art, when the hierarchical relationship between the end layer VC and the initial layer VC is calculated, the auxiliary judgment conditions are too many, the calculation mode is complex, the error rate of the result is high, and the final jump or rollback interface is not the interface corresponding to the initial layer VC is solved, and the effects of improving the accuracy and convenience of the rollback process are achieved.
The rollback display processing device provided by the embodiment of the present disclosure is the same as the rollback display processing method provided by any embodiment of the present disclosure, and technical details that are not described in detail in the embodiment of the present disclosure may be referred to in the embodiment of the present disclosure, and the embodiment of the present disclosure has the same beneficial effects as the embodiment of the present disclosure.
Example four
An electronic device is provided in the fourth embodiment of the present disclosure, and referring to fig. 4, a schematic structural diagram of an electronic device (e.g., a client or a server) 400 suitable for implementing the fourth embodiment of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, Personal Digital Assistants (PDAs), tablet computers (PADs), Portable Multimedia Players (PMPs), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, electronic device 400 may include a processing device (e.g., central processing unit, graphics processor, etc.) 401 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage device 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the electronic apparatus 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device 400 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 illustrates an electronic device 400 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication device 409, or from the storage device 408, or from the ROM 402. The computer program, when executed by the processing device 401, performs the above-described functions defined in the fallback display processing method of the embodiment of the present disclosure.
EXAMPLE five
The fifth embodiment of the present disclosure further provides a computer-readable storage medium, where the computer-readable storage medium may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: creating at least three layers of task VC corresponding to the display task, wherein the task VC comprises: an initial layer VC, at least one transition layer VC and an end layer VC; in the display process of the display task, assigning the identification information of the initial layer VC to the lower layer VC layer by layer; and if the response of the ending task aiming at the ending layer VC is detected, acquiring the identification information of the initial layer VC with value assignment layer by layer from the ending layer VC according to a preset completion callback attribute in the ending layer VC, and returning the interface to the initial layer VC for displaying.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. The name of the module does not constitute a limitation of the module itself in some cases, and for example, "standard character image acquisition module" may also be described as "module that acquires at least one standard character image".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (10)

1. A rollback display processing method is characterized by comprising the following steps:
creating at least three layers of task View Controllers (VCs) corresponding to display tasks, the tasks (VCs) comprising: an initial layer VC, at least one transition layer VC and an end layer VC;
in the display process of the display task, assigning the identification information of the initial layer VC to a lower layer VC layer by layer;
and if the ending task response aiming at the ending layer VC is detected, acquiring the identification information of the initial layer VC with the layer-by-layer assignment from the ending layer VC according to a preset completion callback attribute in the ending layer VC, and returning an interface to the initial layer VC for displaying.
2. The method of claim 1, wherein assigning the identification information of the initial layer VC to the lower layer VC layer by layer during the display of the display task comprises:
if a view switching instruction entering a next-level transition layer VC from the initial layer VC is detected, displaying the next-level transition layer VC;
and obtaining the identification information of the initial layer VC and assigning the identification information to the target parameter in the next-stage transition layer VC.
3. The method of claim 2, wherein during the displaying of the display task, assigning the identification information of the initial layer VC to the lower layer VC layer by layer, further comprising:
if a view switching instruction entering a second transition layer VC of a next stage from a first transition layer VC is detected, displaying the second transition layer VC;
acquiring parameter values of the target parameters in the first transition layer VC as identification information of the initial layer VC;
and assigning the parameter value to a target parameter in the second transition layer VC.
4. The method according to claim 2 or 3, wherein during the displaying of the display task, the identification information of the initial layer VC is assigned to the lower layer VC layer by layer, and further comprising:
if a view switching instruction for entering a next-stage end layer VC from a third transition layer VC is detected, displaying the end layer VC;
acquiring parameter values of the target parameters in the third transition layer VC as identification information of the initial layer VC;
and assigning the parameter value to a target parameter in the end layer VC.
5. The method of claim 4, wherein obtaining identification information of the initial layer VC assigned layer-by-layer from the end layer VC according to a post-completion callback attribute preconfigured in the end layer VC, and displaying an interface returned to the initial layer VC comprises:
executing a method for returning to a target VC preset in the end layer VC according to the call-back attribute when the interface is finished so as to return the interface to the initial layer VC for displaying;
and the target VC to be rolled back in the method for rolling back to the target VC is associated with the parameter value of the target parameter in the end layer VC.
6. A fallback display processing apparatus, comprising:
a creating module, configured to create at least three layers of task view controllers VC corresponding to display tasks, where a task VC includes: an initial layer VC, at least one transition layer VC and an end layer VC;
the assignment module is used for assigning the identification information of the initial layer VC to a lower layer VC layer by layer in the display process of the display task;
and the rollback module is used for acquiring the identification information of the initial layer VC with value assignment layer by layer from the end layer VC according to a preset completion callback attribute in the end layer VC and rolling back an interface to the initial layer VC for display if a response of the end task aiming at the end layer VC is detected.
7. The apparatus of claim 6, wherein the assignment module comprises:
the first display unit is used for displaying the next-level transition layer VC if a view switching instruction for entering the next-level transition layer VC from the initial layer VC is detected;
and the first assignment unit is used for acquiring the identification information of the initial layer VC and assigning the identification information to the target parameter in the next-stage transition layer VC.
8. The apparatus of claim 6, wherein the assignment module further comprises:
the second display unit is used for displaying the second transition layer VC if a view switching instruction of entering the next-stage second transition layer VC from the first transition layer VC is detected;
a first obtaining unit, configured to obtain a parameter value of the target parameter in the first transition layer VC as identification information of the initial layer VC;
and the second assignment unit is used for assigning the parameter value to a target parameter in the second transition layer VC.
9. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the fallback display processing method of any one of claims 1-5.
10. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the fallback display processing method according to any one of claims 1-5.
CN201910190551.1A 2019-03-13 2019-03-13 Rollback display processing method, apparatus, device and medium Active CN111694624B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910190551.1A CN111694624B (en) 2019-03-13 2019-03-13 Rollback display processing method, apparatus, device and medium
PCT/CN2020/070691 WO2020181912A1 (en) 2019-03-13 2020-01-07 Return display processing method, apparatus, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910190551.1A CN111694624B (en) 2019-03-13 2019-03-13 Rollback display processing method, apparatus, device and medium

Publications (2)

Publication Number Publication Date
CN111694624A true CN111694624A (en) 2020-09-22
CN111694624B CN111694624B (en) 2021-12-10

Family

ID=72426523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910190551.1A Active CN111694624B (en) 2019-03-13 2019-03-13 Rollback display processing method, apparatus, device and medium

Country Status (2)

Country Link
CN (1) CN111694624B (en)
WO (1) WO2020181912A1 (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661390A (en) * 2009-09-16 2010-03-03 杭州华三通信技术有限公司 Linkage display and jump control method and device
CN102929941A (en) * 2012-09-29 2013-02-13 四川长虹电器股份有限公司 Sliding loading method for Web page based on Android platform browser
US20140365960A1 (en) * 2013-06-05 2014-12-11 Tencent Technology (Shenzhen) Company Limited Method and apparatus for page view switching
CN104216773A (en) * 2013-06-05 2014-12-17 腾讯科技(深圳)有限公司 View switching method and device
CN104423785A (en) * 2013-09-05 2015-03-18 腾讯科技(深圳)有限公司 View switching method and terminal
US20160360004A1 (en) * 2015-06-02 2016-12-08 Apple Inc. Method and system for processing notifications amongst applications of a data processing system
CN107463367A (en) * 2017-06-22 2017-12-12 北京小度信息科技有限公司 Transition cartoon implementing method and device
CN107621951A (en) * 2017-08-29 2018-01-23 口碑(上海)信息技术有限公司 A kind of method and device of view Hierarchical Optimization
CN108984245A (en) * 2018-06-20 2018-12-11 武汉斑马快跑科技有限公司 A kind of page switching method and system based on single view controller
CN109413056A (en) * 2018-10-15 2019-03-01 北京字节跳动网络技术有限公司 Method and apparatus for handling information

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090276730A1 (en) * 2008-03-04 2009-11-05 Alexandre Aybes Techniques for navigation of hierarchically-presented data
CN106843953B (en) * 2017-01-16 2019-12-17 百融(北京)金融信息服务股份有限公司 iOS system based application program transverse switching system and method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661390A (en) * 2009-09-16 2010-03-03 杭州华三通信技术有限公司 Linkage display and jump control method and device
CN102929941A (en) * 2012-09-29 2013-02-13 四川长虹电器股份有限公司 Sliding loading method for Web page based on Android platform browser
US20140365960A1 (en) * 2013-06-05 2014-12-11 Tencent Technology (Shenzhen) Company Limited Method and apparatus for page view switching
CN104216773A (en) * 2013-06-05 2014-12-17 腾讯科技(深圳)有限公司 View switching method and device
CN104423785A (en) * 2013-09-05 2015-03-18 腾讯科技(深圳)有限公司 View switching method and terminal
US20160360004A1 (en) * 2015-06-02 2016-12-08 Apple Inc. Method and system for processing notifications amongst applications of a data processing system
CN107463367A (en) * 2017-06-22 2017-12-12 北京小度信息科技有限公司 Transition cartoon implementing method and device
CN107621951A (en) * 2017-08-29 2018-01-23 口碑(上海)信息技术有限公司 A kind of method and device of view Hierarchical Optimization
CN108984245A (en) * 2018-06-20 2018-12-11 武汉斑马快跑科技有限公司 A kind of page switching method and system based on single view controller
CN109413056A (en) * 2018-10-15 2019-03-01 北京字节跳动网络技术有限公司 Method and apparatus for handling information

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
胡扬帆: "基于iPhone平台的移动博物馆APP的设计与实现", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》 *

Also Published As

Publication number Publication date
WO2020181912A1 (en) 2020-09-17
CN111694624B (en) 2021-12-10

Similar Documents

Publication Publication Date Title
US9575652B2 (en) Instantiable gesture objects
CN109885314B (en) Automatic layout method and device for small programs
CN109857486B (en) Method, device, equipment and medium for processing program page data
CN106980431B (en) Management method and device for application icons in mobile terminal
CN109446025B (en) Operation behavior playback method and device, electronic equipment and readable medium
CN111309415B (en) User Interface (UI) information processing method and device of application program and electronic equipment
CN110619100B (en) Method and apparatus for acquiring data
CN110619099B (en) Comment content display method, device, equipment and storage medium
CN110688829A (en) Table generation method, device, equipment and storage medium
CN112073301A (en) Method, device and computer readable medium for deleting chat group members
CN110489041B (en) Method, device, equipment and medium for automatically aligning small program dragging elements
CN111694624B (en) Rollback display processing method, apparatus, device and medium
CN110147283B (en) Display content switching display method, device, equipment and medium
CN110472220B (en) Paste operation processing method and device, electronic equipment and computer-readable storage medium
CN113112217B (en) Business process configuration method, device, electronic equipment and computer readable medium
CN114860368A (en) Control method and device of display equipment, electronic equipment and readable storage medium
CN110795194B (en) Desktop display control method, device, terminal and storage medium
CN114461101A (en) Message selection method, device and equipment
CN112925521A (en) Interface generation method and device
CN108415656B (en) Display control method, device, medium and electronic equipment in virtual scene
CN109840073B (en) Method and device for realizing business process
CN111291090A (en) Time period obtaining method and device based on time control, electronic equipment and medium
CN116360710B (en) Data storage method applied to server cluster, electronic device and readable medium
CN113835791B (en) Method and apparatus for presenting hierarchical relationships of view components
CN110308833B (en) Method and equipment for controlling resource allocation in application

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
GR01 Patent grant
GR01 Patent grant