WO2020181912A1 - 回退显示处理方法、装置、设备及介质 - Google Patents

回退显示处理方法、装置、设备及介质 Download PDF

Info

Publication number
WO2020181912A1
WO2020181912A1 PCT/CN2020/070691 CN2020070691W WO2020181912A1 WO 2020181912 A1 WO2020181912 A1 WO 2020181912A1 CN 2020070691 W CN2020070691 W CN 2020070691W WO 2020181912 A1 WO2020181912 A1 WO 2020181912A1
Authority
WO
WIPO (PCT)
Prior art keywords
layer
transition layer
transition
initial
identification information
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.)
Ceased
Application number
PCT/CN2020/070691
Other languages
English (en)
French (fr)
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
Publication of WO2020181912A1 publication Critical patent/WO2020181912A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Definitions

  • the embodiments of the present disclosure relate to image display technology, for example, to a method, device, device, and medium for processing a fallback display.
  • the jump between the view interfaces is the basic operation to realize the function of the application.
  • the navigation controller (Navigation Controller) pushes and pops the view controller (ViewController, VC) to realize the jump between the view interfaces.
  • the navigation controller is in the form of a stack The controller that manages at least one VC. The biggest role of the navigation controller is to control the hierarchical relationship between VCs and return.
  • VC is the controller responsible for managing the view hierarchy. Each VC manages a view hierarchy, including creating View the view in the view hierarchy and handle related user events, and add the entire view hierarchy to the application window.
  • the method to jump from the current display VC to the target VC is to loop through the target VC in the VC stack of the navigation controller, and calculate the hierarchical relationship between the current display VC and the target VC.
  • the pop operation realizes the operation of jumping from the currently displayed VC to the target VC.
  • the disadvantage of the above method is that since the multiplexing operation of VC will have 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, resulting in complex calculation methods and The resulting error rate is high, and the interface that makes the final jump or rollback is not the interface corresponding to the target VC.
  • the embodiments of the present disclosure provide a rollback display processing method, device, equipment, and medium to improve the accuracy and convenience of the rollback process.
  • the embodiment of the present disclosure provides a rollback display processing method, including:
  • the at least three layers of task VCs sequentially including: an initial layer VC, at least one transition layer VC, and an end layer VC;
  • the display process of the display task assign the identification information of the initial layer VC to the lower layer VC layer by layer, where the lower layer VC includes the at least one transition layer VC and the end layer VC;
  • the embodiment of the present disclosure also provides a fallback display processing device, including:
  • the creation module is configured to create at least three layers of task VCs corresponding to the display tasks, and the at least three layers of task VCs in turn include an initial layer VC, at least one transition layer VC, and an end layer VC;
  • the assignment module is configured to assign the identification information of the initial layer VC to the lower layer VC layer by layer during the display process of the display task, wherein the lower layer VC includes the at least one transition layer VC and the End layer VC;
  • the fallback module is configured to, in the case of detecting an end task response to the end layer VC, call back from the end layer VC according to the completion time attribute preconfigured in the end layer VC triggered by the end task response
  • the layer VC obtains the identification information of the initial layer VC assigned layer by layer, and returns the interface to the initial layer VC for display.
  • An embodiment of the present disclosure also provides an electronic device, which includes:
  • One or more processors are One or more processors;
  • Memory set to store one or more programs
  • the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors implement the fallback display processing method according to any embodiment of the present disclosure.
  • the embodiment of the present disclosure also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, it implements the fallback display processing method as described in any embodiment of the present disclosure.
  • FIG. 1 is a flowchart of a rollback display processing method provided by Embodiment 1 of the present disclosure
  • FIG. 2 is a flowchart of a rollback display processing method provided by the second embodiment of the present disclosure
  • FIG. 3 is a schematic structural diagram of a fallback display processing device provided by Embodiment 3 of the present disclosure.
  • FIG. 4 is a schematic structural diagram of an electronic device provided in the fourth embodiment of the present disclosure.
  • FIG. 1 is a flowchart of a method for processing a rollback display provided in Embodiment 1 of the present disclosure. This embodiment can be applied to a situation where a jump or rollback between interfaces is realized.
  • the method can be executed by a device for displaying a rollback.
  • the device can be implemented in software and/or hardware, and the device can be configured in an electronic device, which is a smart phone, a tablet computer, etc., adapted to the iOS operating system.
  • the method includes the following steps:
  • Step 110 Create at least three layers of task VCs corresponding to the display tasks.
  • the at least three layers of task VCs in turn include an initial layer VC, at least one transition layer VC, and an end layer VC.
  • the display task refers to the display tasks of a series of interface corresponding to the view levels when a complete function is realized, including display at the multi-level view level and jump tasks.
  • At least three-level task VC is a controller that manages all view hierarchy structures when completing display tasks. Its main function is to create views in multiple view hierarchy structures and handle related user events, and add the entire view hierarchy structure to the application window.
  • At least three layers of task VCs in turn include: an initial layer VC, at least one transition layer VC, and an end layer VC.
  • the initial layer VC manages the first layer view level of the display task
  • the end layer VC manages the last layer of the display task.
  • Layer view level, between the initial layer VC and the end layer VC there is at least one transition layer VC, which is used to manage other view levels in the display task level by level, so as to realize the complete function corresponding to the display task.
  • the above-mentioned complete function is a function that the user selects the product in the shopping cart interface in the shopping application, and then jumps back to the shopping cart interface after the payment is settled.
  • the initial level VC manages the shopping cart view level.
  • the end layer VC manages the view level that prompts the user to make a successful payment, and the transition layer VC manages the settlement view level and the payment method selection view level during the payment process.
  • the corresponding VC stack is first established in the navigation controller, and the initial layer VC, at least one transition layer VC, and the end layer VC corresponding to the display task are established.
  • the initial layer VC, the transition layer VC, and the end layer VC will be called by the navigation controller according to the actual operation of the user, and the VC stack can be popped and pushed into the VC stack.
  • Step 120 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, where the lower layer VC includes at least one transition layer VC and an end layer VC.
  • the identification information of the initial layer VC is a name associated with the initial layer VC, which is used to form a corresponding relationship with the initial layer VC, that is, once the identification information appears in the subsequent operations, the corresponding call to the initial layer VC can be executed.
  • the identification information of the initial layer VC is defined as VC1.
  • the identification information of the initial layer VC will be changed as the display task continues.
  • the value is assigned to the lower layer VC layer by layer, that is, the identification information of the initial layer VC will be assigned to the lower layer VC while the lower layer VC is displayed, forming an association relationship between the lower layer VC and the initial layer VC.
  • Step 130 In the case of detecting the end task response to the end layer VC, according to the completion callback attribute pre-configured in the end layer VC triggered by the end task response, obtain the initial layer VC assigned layer by layer from the end layer VC The identification information of, the interface is returned to the initial layer VC for display.
  • the end task response of the end layer VC is generally triggered by an event. For example, staying on the payment success interface for 5 seconds is used as an event that triggers the end task response.
  • the payment success interface corresponding to the end layer VC stays for 5 seconds, it will An end task response to the end layer VC is sent, and the end task response is used to trigger the callback on completion attribute pre-configured in the end layer VC.
  • the callback attribute at completion is pre-configured in the end layer VC and is used to trigger the execution of the specified operation attribute information when the task ends.
  • the specified operation is: the interface returns to the target layer VC for display During the execution of the specified operation, the identification information of the initial layer VC assigned layer by layer is obtained from the end layer VC by means such as parameter invocation, so that the target layer VC in the specified operation is defined as the initial layer VC, Finally, the operation of returning the interface to the initial layer VC for display is performed.
  • an initial layer VC, at least one transition layer VC, and an end layer VC corresponding to the display task are created, and the identification information of the initial layer VC is assigned to the lower layer VC layer by layer during the display process of the display task.
  • the end task response to the end layer VC is detected, and according to the completion callback attribute pre-configured in the end layer VC triggered by the end task response, the identification information of the initial layer VC assigned layer by layer is obtained from the end layer VC to realize the interface
  • the operation of returning to the initial layer VC for display 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 level calculations when returning to the initial layer VC.
  • FIG. 2 is a flowchart of a method for processing a rollback display according to the second embodiment of the disclosure. This embodiment can be combined with the optional solutions in one or more of the foregoing embodiments to provide an 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.
  • the identification information of the initial layer VC is assigned to the lower layer VC layer by layer, which can be: after detecting the view switching instruction from the initial layer VC to the transition layer VC of the next level In this case, the transition layer VC of the next level is displayed; the identification information of the initial layer VC is obtained and the identification information of the initial layer VC is assigned to the target parameter in the transition layer VC of the next level.
  • it may also be: in the case of detecting a view switching instruction from the first transition layer VC to the second transition layer VC at the next level, display the second transition layer VC; and obtain the first transition layer VC
  • the parameter value of the target parameter where the parameter value of the target parameter in the first transition layer VC is the identification information of the initial layer VC; the parameter value of the target parameter in the first transition layer VC is assigned to the target parameter in the second transition layer VC .
  • it can also be: in the case of detecting a view switching instruction from the third transition layer VC to the next end layer VC, display the end layer VC; and obtain the parameters of the target parameter in the third transition layer VC Value, wherein the parameter value of the target parameter in the third transition layer VC is the identification information of the initial layer VC; the parameter value of the target parameter in the third transition layer VC is assigned to the target parameter in the end layer VC.
  • the method includes the following steps:
  • Step 210 Create at least three layers of task VCs corresponding to the display tasks.
  • the at least three layers of task VCs in turn include an initial layer VC, at least one transition layer VC, and an end layer VC.
  • uploading data in a cloud application is taken as an example to illustrate all the technical solutions of this embodiment.
  • the display task is: the user selects the data to be uploaded from the current uploadable data list interface, and selects the data upload location in the storage folder list interface.
  • the progress in the upload progress interface is 100%, Jump to the interface that prompts the user to upload successfully, and after staying on the successful upload interface for 5 seconds, return to the current uploadable data list interface for the user to continue uploading data.
  • the initial layer VC corresponds to the uploadable data list view level
  • the transition layer VC corresponds to the storage folder list view level and the upload progress view level
  • the end layer VC corresponds to the view level that prompts the user to upload successfully.
  • Step 220 In the case of detecting a view switching instruction from the initial layer VC to the transition layer VC of the next level, display the transition layer VC of the next level.
  • the view switching instruction is an instruction that triggers the navigation controller to call and display each layer of VCs by the actual operation of the user.
  • this operation will trigger the navigation controller to issue a VC from the initial layer Enter the view switching instruction of the transition layer VC at the next level, and push the storage folder list view hierarchy into the VC stack through a stack operation for display.
  • Step 230 Obtain the identification information of the initial layer VC and assign the identification information of the initial layer VC to the target parameter in the transition layer VC of the next level.
  • the navigation controller obtains the identification information of the uploadable data list view level, and assigns the identification information to the target parameter of the storage folder list view level, where the target The parameter is a variable parameter that stores the identification information of the initial layer VC, and the target parameter exists in other multi-layer VCs except the initial layer VC.
  • Step 240 In the case of detecting the view switching instruction from the first transition layer VC to the second transition layer VC of the next level, display the second transition layer VC.
  • the first transition layer VC and the second transition layer VC are collective names for two adjacent transition layers VC.
  • the first transition layer VC corresponds to the storage folder list view level
  • the second transition layer VC corresponds to the upload progress view level.
  • the cloud application when the user selects the location of the data upload in the storage folder list interface, and clicks the icon corresponding to the data upload function, this operation will trigger the navigation controller to issue a transition from the first transition layer
  • the VC enters the view switching instruction of the second transition layer VC, and pushes the upload progress view level into the VC stack for display through the stack operation.
  • Step 250 Obtain the parameter value of the target parameter in the first transition layer VC, where the parameter value of the target parameter in the first transition layer VC is the identification information of the initial layer VC.
  • the navigation controller obtains the parameter value of the target parameter in the storage folder list view hierarchy, and the parameter value is the identification information of the initial layer VC.
  • Step 260 Assign the parameter value of the target parameter in the first transition layer VC to the target parameter in the second transition layer VC.
  • Step 270 In the case of detecting a view switching instruction from the third transition layer VC to the next end layer VC, display the end layer VC.
  • the third transition layer VC is a general term for the transition layer VCs adjacent to the end layer VC.
  • the third transition layer VC corresponds to the upload progress view level.
  • the navigation controller when the progress in the upload progress interface is 100%, the navigation controller is triggered to issue a view switching instruction from the third transition layer VC to the end layer VC, and through the stack operation, Push the view hierarchy prompting the user to upload successfully into the VC stack for display.
  • Step 280 Obtain the parameter value of the target parameter in the third transition layer VC, where the parameter value of the target parameter in the third transition layer VC is the identification information of the initial layer VC.
  • Step 290 Assign the parameter value of the target parameter in the third transition layer VC to the target parameter in the end layer VC.
  • Step 2100 In the case of detecting the end task response for the end layer VC, according to the completion callback attribute pre-configured in the end layer VC triggered by the end task response, obtain the initial layer VC assigned layer by layer from the end layer VC The identification information of, the interface is returned to the initial layer VC for display.
  • the identification information of the initial layer VC assigned layer by layer is obtained from the end layer VC, and the interface is returned to the initial layer VC for display , Including: according to the callback attribute on completion, execute the method of rolling back to the target VC pre-configured in the end layer VC to return the interface to the initial layer VC for display; wherein, the method of rolling back to the target VC requires returning The target VC to fall back to is associated with the parameter value of the target parameter in the end layer VC.
  • obtaining the identification information of the initial layer VC assigned layer by layer from the end layer VC, and returning the interface to the initial layer VC for display includes: obtaining the identification information of the initial layer VC in the end layer VC with a parameter value The target parameter returns the interface to the initial layer VC for display according to the acquired identification information of the initial layer VC.
  • the method of returning to the target VC can be pre-encapsulated in the navigation controller to implement the method of level jump, or it can be programmed by the program developer to implement the method of level jump.
  • the method of returning to the target VC is triggered by the callback attribute on completion.
  • the parameters of the target VC need to be called, and the parameters are compared with the parameters of the target parameters in the end layer VC.
  • Value association achieves the purpose of the target VC corresponding to the initial layer VC, thus realizing the operation of returning the interface to the initial layer VC for display, improving the related technology to realize the method of returning to the target VC by calculating the hierarchical relationship, which greatly reduces The amount of calculation in the rollback display process, and the accuracy of the rollback result is improved.
  • the execution steps 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 are provided, which ensures that the identification information of the initial layer VC can be accurately assigned to the lower layer VC.
  • the lower layer VC until the end layer VC, so that the interface can be accurately returned to the initial layer VC for display.
  • FIG. 3 is a schematic structural diagram of a fallback display processing apparatus provided by the fourth embodiment of the disclosure. This embodiment may be applicable to a situation where a jump or fallback between interfaces is implemented.
  • the device can be implemented in software and/or hardware, and the device can be configured in an electronic device, which is a smart phone, a tablet computer, etc., adapted to the iOS operating system. As shown in FIG. 3, the device may include: a creation module 310, an assignment module 320, and a fallback module 330.
  • the creation module 310 is configured to create at least three layers of task VCs corresponding to the display tasks, and the at least three layers of task VCs are sequentially Including: an initial layer VC, at least one transition layer VC, and an end layer VC, where the lower layer VC includes the at least one transition layer VC and the end layer VC; the assignment module 320 is configured to perform the display task In the VC, the identification information of the initial layer VC is assigned to the lower layer VC layer by layer; the fallback module 330 is set to detect the end task response to the end layer VC in the end layer VC according to the end task response trigger The pre-configured callback attribute on completion is used to obtain the identification information of the initial layer VC assigned layer by layer from the end layer VC, and the interface is returned to the initial layer VC for display.
  • the assignment module 320 includes: a first display unit configured to perform a view switch instruction on the transition layer VC of the next level from the initial layer VC to the transition layer VC of the next level when the view switching instruction is detected. Display; The first assignment unit is configured to obtain the identification information of the initial layer VC and assign the identification information of the initial layer VC to the target parameter in the transition layer VC of the next level.
  • the assignment module 320 further includes: a second display unit, configured to, in the case of detecting a view switching instruction from the first transition layer VC to the second transition layer VC of the next level, to The layer VC is displayed; the first obtaining unit is configured to obtain the parameter value of the target parameter in the first transition layer VC, where the parameter value of the target parameter in the first transition layer VC is the identification information of the initial layer VC; the second assignment unit , Set to assign the parameter value of the target parameter in the first transition layer VC to the target parameter in the second transition layer VC.
  • the assignment module 320 further includes: a third display unit configured to display the end layer VC when a view switching instruction from the third transition layer VC to the next level end layer VC is detected ;
  • the second acquisition unit is set to acquire the parameter value of the target parameter in the third transition layer VC, where the parameter value of the target parameter in the third transition layer VC is the identification information of the initial layer VC;
  • the third assignment unit is set to The parameter value of the target parameter in the third transition layer VC is assigned to the target parameter in the end layer VC.
  • the fallback module 330 includes: a fallback unit, which is set to execute the method of fallback to the target VC pre-configured in the end layer VC according to the callback attribute on completion, so as to return the interface to the initial layer VC. Display; Among them, the target VC that needs to be rolled back to in the method of rolling back to the target VC is associated with the parameter value of the target parameter in the end layer VC.
  • an initial layer VC, at least one transition layer VC, and an end layer VC corresponding to the display task are created, and the identification information of the initial layer VC is assigned to the lower layer VC layer by layer during the display process of the display task.
  • the end task response to the end layer VC is detected, and according to the completion callback attribute pre-configured in the end layer VC triggered by the end task response, the identification information of the initial layer VC assigned layer by layer is obtained from the end layer VC to realize the interface
  • the operation of returning to the initial layer VC for display 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 level calculations when returning to the initial layer VC.
  • the fallback display processing device provided by the embodiment of the present disclosure belongs to the same concept as the fallback display processing method provided by any embodiment of the present disclosure.
  • the present disclosure has the same effect as the above-mentioned embodiment.
  • FIG. 4 shows a schematic structural diagram of an electronic device (for example, a client or a server) 400 suitable for implementing the embodiments of the present disclosure.
  • the electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (Personal Digital Assistant, PDA), tablet computers (PAD), and portable multimedia players (Portable Media Player). , PMP), mobile terminals such as in-vehicle terminals (for example, in-vehicle navigation terminals), and fixed terminals such as digital televisions (Television, TV), desktop computers, etc.
  • PMP Personal Digital Assistant
  • PMP Personal Digital Assistant
  • PMP mobile terminals
  • in-vehicle terminals for example, in-vehicle navigation terminals
  • fixed terminals such as digital televisions (Television, TV), desktop computers, etc.
  • the electronic device shown in FIG. 4 is only an example, and should not bring any limitation to the function and use range of the embodiments of the present disclosure
  • the electronic device 400 may include a processing device (such as a central processing unit, a graphics processor, etc.) 401, which may be based on a program stored in a read-only memory (Read-Only Memory, ROM) 402 or from a storage device 408 A program loaded into a random access memory (Random Access Memory, RAM) 403 executes various appropriate actions and processes.
  • the RAM 403 also stores various programs and data required for the operation of the electronic device 400.
  • the processing device 401, ROM 402, and RAM 403 are connected to each other through a bus 404.
  • An input/output (Input/Output, I/O) interface 405 is also connected to the bus 404.
  • the following devices can be connected to the I/O interface 405: including input devices 406 such as touch screen, touch panel, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD) , Output devices 407 such as speakers, vibrators, etc.; storage devices 408 such as magnetic tapes, hard disks, etc.; and communication devices 409.
  • the communication device 409 may allow the electronic device 400 to perform wireless or wired communication with other devices to exchange data.
  • FIG. 4 shows an electronic device 400 with multiple devices, it is not required to implement or have all the devices shown. It may alternatively be implemented or provided with more or fewer devices.
  • the process described above with reference to the flowchart may be implemented as a computer software program.
  • the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart.
  • the computer program may be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402.
  • the processing device 401 the above functions defined in the fallback display processing method of the embodiment of the present disclosure are executed.
  • the fifth embodiment of the present disclosure also provides a computer-readable storage medium.
  • the computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two.
  • the computer-readable storage medium may be, for example, but not limited to, an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above.
  • Examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, RAM, ROM, Erasable Programmable Read-Only Memory (EPROM) Or flash memory), optical fiber, CD-ROM (Compact Disc Read-Only Memory), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and a computer-readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium.
  • the computer-readable signal medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
  • the program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wire, optical cable, radio frequency (RF), etc., or any suitable combination of the above.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the electronic device.
  • the aforementioned computer-readable medium carries one or more programs.
  • the electronic device is caused to create at least three levels of task VC corresponding to the display task, and the at least three levels of task VC in sequence Including: an initial layer VC, at least one transition layer VC, and an end layer VC; in the display process of the display task, the identification information of the initial layer VC is assigned layer by layer to the lower layer VC, where the lower layer VC includes the at least one layer The transition layer VC and the end layer VC; in the case of detecting an end task response to the end layer VC, the end layer VC is obtained from the end layer VC according to the callback attribute at completion pre-configured in the end layer VC triggered by the end task response The identification information of the initial layer VC, which is assigned layer by layer, returns the interface to the initial layer VC for display.
  • the computer program code used to perform the operations of the present disclosure may be written in one or more programming languages or a combination thereof.
  • the above-mentioned programming languages include object-oriented programming languages—such as Java, Smalltalk, C++, and also conventional Procedural programming language-such as "C" language or similar programming language.
  • the program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network-including Local Area Network (LAN) or Wide Area Network (WAN)-or it can be connected to an external computer (for example, use an Internet service provider to connect via the Internet).
  • LAN Local Area Network
  • WAN Wide Area Network
  • each block in the flowchart or block diagram can represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logical function Executable instructions.
  • the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two blocks shown in succession can actually be executed substantially in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or operations Or it can be realized by a combination of dedicated hardware and computer instructions.
  • the modules involved in the embodiments described in the present disclosure can be implemented in software or hardware. Among them, the name of the module does not constitute a limitation on the module itself in one case.

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

本文公开了一种回退显示处理方法、装置、设备及介质,该方法包括:创建与显示任务对应的至少三层任务VC,至少三层任务VC依次包括:初始层VC、至少一个过渡层VC以及结束层VC;在对显示任务的显示过程中,将初始层VC的标识信息逐层赋值至下层VC中,其中,所述下层VC包括所述至少一个过渡层VC以及所述结束层VC;在检测到针对结束层VC的结束任务响应的情况下,根据结束任务响应触发的在结束层VC中预先配置的完成时回调属性,从结束层VC中获取逐层赋值的初始层VC的标识信息,将界面回退至初始层VC进行显示。

Description

回退显示处理方法、装置、设备及介质
本申请要求在2019年03月13日提交中国专利局、申请号为201910190551.1的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
技术领域
本公开实施例涉及图像显示技术,例如涉及一种回退显示处理方法、装置、设备及介质。
背景技术
在智能设备的使用过程中,视图界面间的跳转是实现应用程序功能的基础操作。
在iOS系统中,是以导航控制器(Navigation Controller)对视图控制器(ViewController,VC)进行压栈和出栈操作来实现视图界面间的跳转的,其中,导航控制器是以栈的形式管理至少一个VC的控制器,导航控制器最大的作用是控制VC之间的跳转以及返回的层级关系,VC是负责管理视图层次结构的控制器,每个VC管理一个视图层次结构,包括创建视图层级结构中的视图并处理相关用户事件,以及将整个视图层次结构添加到应用窗口。一般的,在导航控制器中,实现从当前显示VC跳转到目标VC的方法为:在导航控制器的VC栈中循环遍历目标VC,通过计算当前显示VC与目标VC间的层级关系以进行出栈操作,实现从当前显示VC跳转到目标VC的操作。
上述方法存在的缺点是:由于VC的复用操作会出现多个目标VC的副本,则在计算当前显示VC与目标VC间的层级关系时,需要增加大量的辅助判断条件,导致计算方式复杂且结果的错误率较高,使最终跳转或者回退的界面并不是目标VC对应的界面。
发明内容
本公开实施例提供一种回退显示处理方法、装置、设备及介质,以提高回退过程的准确性和便利性。
本公开实施例提供了一种回退显示处理方法,包括:
创建与显示任务对应的至少三层任务VC,所述至少三层任务VC依次包括:初始层VC、至少一个过渡层VC以及结束层VC;
在对所述显示任务的显示过程中,将所述初始层VC的标识信息逐层赋值至 下层VC中,其中,所述下层VC包括所述至少一个过渡层VC以及所述结束层VC;
在检测到针对所述结束层VC的结束任务响应的情况下,根据所述结束任务响应触发的在所述结束层VC中预先配置的完成时回调属性,从所述结束层VC中获取逐层赋值的所述初始层VC的标识信息,将界面回退至所述初始层VC进行显示。
本公开实施例还提供了一种回退显示处理装置,包括:
创建模块,设置为创建与显示任务对应的至少三层任务VC,所述至少三层任务VC依次包括:初始层VC、至少一个过渡层VC以及结束层VC;
赋值模块,设置为在对所述显示任务的显示过程中,将所述初始层VC的标识信息逐层赋值至下层VC中,其中,所述下层VC包括所述至少一个过渡层VC以及所述结束层VC;
回退模块,设置为在检测到针对所述结束层VC的结束任务响应的情况下,根据所述结束任务响应触发的在所述结束层VC中预先配置的完成时回调属性,从所述结束层VC中获取逐层赋值的所述初始层VC的标识信息,将界面回退至所述初始层VC进行显示。
本公开实施例还提供了一种电子设备,该电子设备包括:
一个或多个处理器;
存储器,设置为存储一个或多个程序;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如本公开任意实施例所述的回退显示处理方法。
本公开实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本公开任意实施例所述的回退显示处理方法。
附图说明
图1是本公开实施例一提供的一种回退显示处理方法的流程图;
图2是本公开实施例二提供的一种回退显示处理方法的流程图;
图3是本公开实施例三提供的一种回退显示处理装置的结构示意图;
图4是本公开实施例四提供的一种电子设备的结构示意图。
具体实施方式
下面结合附图和实施例对本公开进行说明。此处所描述的具体实施例仅仅用于解释本公开,而非对本公开的限定。为了便于描述,附图中仅示出了与本公开相关的部分而非全部结构。下述实施例中,每个实施例中同时提供了可选特征和示例,实施例中记载的多个特征可进行组合,形成多个可选方案,不应将每个编号的实施例仅视为一个技术方案。
实施例一
图1为本公开实施例一提供的一种回退显示处理方法的流程图,本实施例可适用于实现界面间跳转或者回退的情况,该方法可以由回退显示处理装置来执行,该装置可以采用软件和/或硬件的方式实现,该装置可以配置于电子设备中,该电子设备为适配iOS操作系统的智能手机、平板电脑等。如图1所示,该方法包括如下步骤:
步骤110、创建与显示任务对应的至少三层任务VC,至少三层任务VC依次包括:初始层VC、至少一个过渡层VC以及结束层VC。
本实施例中,显示任务是指实现一个完整功能时的一系列视图层级对应的界面的显示任务,包括在多级视图层级的显示以及跳转任务。至少三层任务VC是在完成显示任务时,管理所有视图层级结构的控制器,其主要作用是创建多个视图层级结构中的视图并处理相关用户事件,以及将整个视图层级结构添加到应用窗口。至少三层任务VC依次包括:初始层VC、至少一个过渡层VC以及结束层VC,其中,初始层VC管理的是显示任务的第一层视图层级,结束层VC管理的是显示任务的最后一层视图层级,在初始层VC和结束层VC之间,存在至少一个过渡层VC,用于逐级管理显示任务中的其他视图层级,以实现显示任务对应的完整功能。
在一个例子中,上述完整功能为用户在购物应用中,选择购物车界面中的商品,并在结算付款后跳转回购物车界面的功能,其中,初始层VC管理的是购物车视图层级,结束层VC管理的是提示用户付款成功的视图层级,过渡层VC管理的是在付款过程中的结算视图层级和选择付款方式视图层级等。
在本实施例中,当确定要处理一个完整功能对应的显示任务时,首先在导航控制器中建立对应的VC栈,以及与显示任务对应的初始层VC、至少一个过渡层VC以及结束层VC,在显示任务的显示过程中,初始层VC、过渡层VC以及结束层VC会根据用户的实际操作被导航控制器调用,通过在VC栈中进行出栈和入栈操作,实现对VC栈中栈顶的VC对应的视图层级的显示。
步骤120、在对显示任务的显示过程中,将初始层VC的标识信息逐层赋值 至下层VC中,其中,所述下层VC包括至少一个过渡层VC以及结束层VC。本实施例中,初始层VC的标识信息就是关联初始层VC的一个名称,用于和初始层VC形成对应关系,即在后续操作中一旦出现该标识信息,就可以执行对应的调用初始层VC的操作,例如,将初始层VC的标识信息定义为VC1。
在本实施例中,当在显示任务的显示过程中,用户的实际操作触发导航控制器对多层VC进行调用显示时,所述初始层VC的标识信息会随着显示任务的不断进行而被逐层赋值至下层VC中,即初始层VC的标识信息会在下层VC显示的同时,被赋值到下层VC中,形成下层VC与初始层VC的关联关系。
步骤130、在检测到针对结束层VC的结束任务响应的情况下,根据结束任务响应触发的在结束层VC中预先配置的完成时回调属性,从结束层VC中获取逐层赋值的初始层VC的标识信息,将界面回退至初始层VC进行显示。
本实施例中,结束层VC的结束任务响应一般由事件触发,例如,将在付款成功界面停留5秒作为触发结束任务响应的事件,当结束层VC对应的付款成功界面停留5秒后,会发出针对结束层VC的结束任务响应,该结束任务响应用于触发在结束层VC中预先配置的完成时回调属性。完成时回调属性是预先配置在结束层VC中的,用于在任务结束时,触发执行指定操作的属性信息,在本实施例中,所述指定操作为:界面回退至目标层VC进行显示,在所述指定操作执行过程中,会通过参数调用等手段从结束层VC中获取逐层赋值的初始层VC的标识信息,使所述指定操作中的目标层VC被定义为初始层VC,最终执行将界面回退至初始层VC进行显示的操作。
本实施例通过创建与显示任务对应的初始层VC、至少一个过渡层VC以及结束层VC,并在对显示任务的显示过程中,将初始层VC的标识信息逐层赋值至下层VC中,在检测到针对结束层VC的结束任务响应,根据结束任务响应触发的在结束层VC中预先配置的完成时回调属性,从结束层VC中获取逐层赋值的初始层VC的标识信息,实现将界面回退至初始层VC进行显示的操作,即本实施例通过将初始层VC的标识信息逐层赋值至下层VC中,使结束层VC在回退到初始层VC时无需进行复杂的层级计算,仅需要通过预先配置的完成时回调属性,触发执行与初始层VC的标识信息相关联的指定操作,即可将界面回退至初始层VC进行显示。解决了相关技术中,在计算结束层VC与初始层VC间的层级关系时,辅助判断条件过多,导致计算方式复杂且结果的错误率较高,使最终跳转或者回退的界面并不是初始层VC对应的界面的问题,实现了提高回退过程的准确性和便利性的效果。
实施例二
图2为本公开实施例二提供的一种回退显示处理方法的流程图。本实施例可以与上述一个或者多个实施例中可选方案结合,提供了在对显示任务的显示过程中,将初始层VC的标识信息逐层赋值至下层VC中的执行步骤。其中,在对显示任务的显示过程中,将初始层VC的标识信息逐层赋值至下层VC中,可以为:在检测到从初始层VC进入至下一级的过渡层VC的视图切换指令的情况下,对下一级的过渡层VC进行显示;获取初始层VC的标识信息并将初始层VC的标识信息赋值给下一级的过渡层VC中的目标参数。
或者,还可以为:在检测到从第一过渡层VC进入至下一级的第二过渡层VC的视图切换指令的情况下,对第二过渡层VC进行显示;获取第一过渡层VC中目标参数的参数值,其中,第一过渡层VC中目标参数的参数值为初始层VC的标识信息;将第一过渡层VC中目标参数的参数值赋值给第二过渡层VC中的目标参数。
或者,还可以为:在检测到从第三过渡层VC进入至下一级的结束层VC的视图切换指令的情况下,对结束层VC进行显示;获取第三过渡层VC中目标参数的参数值,其中,所述第三过渡层VC中目标参数的参数值为初始层VC的标识信息;将第三过渡层VC中目标参数的参数值赋值给结束层VC中的目标参数。
如图2所示,该方法包括如下步骤:
步骤210、创建与显示任务对应的至少三层任务VC,至少三层任务VC依次包括:初始层VC、至少一个过渡层VC以及结束层VC。
在本实施例中,以在云端应用中上传数据为例,说明本实施例的全部技术方案。在云端应用中,显示任务为:用户从当前可上传数据列表界面中选择待上传的数据,并在存储文件夹列表界面中选择数据上传的位置,当上传进度界面中的进度为100%后,跳转至提示用户上传成功界面,并在上传成功界面停留5秒后,回退至当前可上传数据列表界面,供用户继续上传数据。其中,初始层VC对应可上传数据列表视图层级,过渡层VC对应存储文件夹列表视图层级以及上传进度视图层级,结束层VC对应提示用户上传成功视图层级。
步骤220、在检测到从初始层VC进入至下一级的过渡层VC的视图切换指令的情况下,对下一级的过渡层VC进行显示。
本实施例中,视图切换指令即为用户的实际操作触发导航控制器对每层VC进行调用显示的指令。
延续上述步骤中的举例,在云端应用中,当用户通过当前可上传数据列表界面选择待上传的数据后,点击与选择存储位置功能对应的图标,该操作会触发导航控制器发出从初始层VC进入下一级的过渡层VC的视图切换指令,通过 入栈操作,将存储文件夹列表视图层级压入VC栈中,进行显示。
步骤230、获取初始层VC的标识信息并将初始层VC的标识信息赋值给下一级的过渡层VC中的目标参数。
延续上述步骤中的举例,当存储文件夹列表界面显示后,导航控制器获取可上传数据列表视图层级的标识信息,并将该标识信息赋值给存储文件夹列表视图层级的目标参数,其中,目标参数为存储初始层VC的标识信息的变量参数,目标参数存在于除初始层VC外的其他多层VC中。
步骤240、在检测到从第一过渡层VC进入至下一级的第二过渡层VC的视图切换指令的情况下,对第二过渡层VC进行显示。
本实施例中,第一过渡层VC和第二过渡层VC是对相邻的两个过渡层VC的统称,在上述步骤的举例中,第一过渡层VC对应存储文件夹列表视图层级,第二过渡层VC对应上传进度视图层级。
延续上述步骤中的举例,在云端应用中,当用户在存储文件夹列表界面中选择数据上传的位置后,点击与数据上传功能对应的图标,该操作会触发导航控制器发出从第一过渡层VC进入至第二过渡层VC的视图切换指令,通过入栈操作,将上传进度视图层级压入VC栈中,进行显示。
步骤250、获取第一过渡层VC中目标参数的参数值,其中,第一过渡层VC中目标参数的参数值为初始层VC的标识信息。
延续上述步骤中的举例,当上传进度界面显示后,导航控制器获取存储文件夹列表视图层级中目标参数的参数值,该参数值即为初始层VC的标识信息。
步骤260、将第一过渡层VC中目标参数的参数值赋值给第二过渡层VC中的目标参数。
至此,实现了初始层VC的标识信息从初始层VC赋值至第一过渡层VC,再从第一过渡层VC赋值至第二过渡层VC的过程。
步骤270、在检测到从第三过渡层VC进入至下一级的结束层VC的视图切换指令的情况下,对结束层VC进行显示。
本实施例中,第三过渡层VC是对临近结束层VC的过渡层VC的统称,在上述步骤的举例中,第三过渡层VC对应上传进度视图层级。
延续上述步骤中的举例,在云端应用中,当上传进度界面中的进度为100%后,触发导航控制器发出从第三过渡层VC进入至结束层VC的视图切换指令,通过入栈操作,将提示用户上传成功视图层级压入VC栈中,进行显示。
步骤280、获取第三过渡层VC中目标参数的参数值,其中,第三过渡层 VC中目标参数的参数值为初始层VC的标识信息。
步骤290、将第三过渡层VC中目标参数的参数值赋值给结束层VC中的目标参数。
至此,实现了将初始层VC的标识信息逐层赋值至结束层VC的过程。
步骤2100、在检测到针对结束层VC的结束任务响应的情况下,根据结束任务响应触发的在结束层VC中预先配置的完成时回调属性,从结束层VC中获取逐层赋值的初始层VC的标识信息,将界面回退至初始层VC进行显示。
延续上述步骤中的举例,在云端应用中,将在上传成功界面停留5秒作为触发结束任务响应的事件,当结束层VC对应的提示用户上传成功视图层级停留5秒后,会发出针对结束层VC的结束任务响应,该结束任务响应用于触发界面回退至可上传数据列表视图层级进行显示的操作。
可选的,根据结束任务响应触发的在结束层VC中预先配置的完成时回调属性,从结束层VC中获取逐层赋值的初始层VC的标识信息,将界面回退至初始层VC进行显示,包括:根据完成时回调属性,执行结束层VC中预先配置的回退至目标VC的方法,以将界面回退至初始层VC进行显示;其中,回退至目标VC的方法中的需要回退至的目标VC,与结束层VC中目标参数的参数值关联。
一实施例中,从结束层VC中获取逐层赋值的初始层VC的标识信息,将界面回退至初始层VC进行显示,包括:获取结束层VC中参数值为初始层VC的标识信息的目标参数,根据获取的初始层VC的标识信息将界面回退至初始层VC进行显示。
回退至目标VC的方法是可以在导航控制器中预先封装的,用于实现层级跳转的方法,也可以是程序开发人员编程实现的,用于实现层级跳转的方法。
在本可选的技术方案中,通过完成时回调属性触发执行回退至目标VC的方法,在该方法执行时,需要调用确定目标VC的参数,将该参数与结束层VC中目标参数的参数值关联,达到目标VC与初始层VC对应的目的,从而实现了将界面回退至初始层VC进行显示的操作,改进了相关技术通过计算层级关系实现回退至目标VC的方法,大大减少了回退显示过程中的运算量,并提高了回退结果的正确性。
本实施未解释之处,请参见前述实施例,在此不再赘述。
在上述技术方案中,提供了在对显示任务的显示过程中,将初始层VC的标识信息逐层赋值至下层VC中的执行步骤,保证了初始层VC的标识信息可以准确无误的被赋值至下层VC,直至结束层VC中,使界面可以准确的回退至初始层VC进行显示。
实施例三
图3为本公开实施例四提供的一种回退显示处理装置的结构示意图,本实施例可适用于实现界面间跳转或者回退的情况。该装置可以采用软件和/或硬件的方式实现,该装置可以配置于电子设备中,该电子设备为适配iOS操作系统的智能手机、平板电脑等。如图3所示,该装置可以包括:创建模块310、赋值模块320和回退模块330,其中,创建模块310,设置为创建与显示任务对应的至少三层任务VC,至少三层任务VC依次包括:初始层VC、至少一个过渡层VC以及结束层VC,其中,所述下层VC包括所述至少一个过渡层VC以及所述结束层VC;赋值模块320,设置为在对显示任务的显示过程中,将初始层VC的标识信息逐层赋值至下层VC中;回退模块330,设置为在检测到针对结束层VC的结束任务响应的情况下,根据结束任务响应触发的在结束层VC中预先配置的完成时回调属性,从结束层VC中获取逐层赋值的初始层VC的标识信息,将界面回退至初始层VC进行显示。
可选的,赋值模块320,包括:第一显示单元,设置为在检测到从初始层VC进入至下一级的过渡层VC的视图切换指令的情况下,对下一级的过渡层VC进行显示;第一赋值单元,设置为获取初始层VC的标识信息并将初始层VC的标识信息赋值给下一级的过渡层VC中的目标参数。
可选的,赋值模块320,还包括:第二显示单元,设置为在检测到从第一过渡层VC进入至下一级的第二过渡层VC的视图切换指令的情况下,对第二过渡层VC进行显示;第一获取单元,设置为获取第一过渡层VC中目标参数的参数值,其中,第一过渡层VC中目标参数的参数值为初始层VC的标识信息;第二赋值单元,设置为将第一过渡层VC中目标参数的参数值赋值给第二过渡层VC中的目标参数。
可选的,赋值模块320,还包括:第三显示单元,设置为在检测到从第三过渡层VC进入至下一级的结束层VC的视图切换指令的情况下,对结束层VC进行显示;第二获取单元,设置为获取第三过渡层VC中目标参数的参数值,其中,第三过渡层VC中目标参数的参数值为初始层VC的标识信息;第三赋值单元,设置为将第三过渡层VC中目标参数的参数值赋值给结束层VC中的目标参数。
可选的,回退模块330,包括:回退单元,是设置为根据完成时回调属性,执行结束层VC中预先配置的回退至目标VC的方法,以将界面回退至初始层VC进行显示;其中,回退至目标VC的方法中的需要回退至的目标VC,与结束层VC中目标参数的参数值关联。
本实施例通过创建与显示任务对应的初始层VC、至少一个过渡层VC以及结束层VC,并在对显示任务的显示过程中,将初始层VC的标识信息逐层赋值至下层VC中,在检测到针对结束层VC的结束任务响应,根据结束任务响应触发的在结束层VC中预先配置的完成时回调属性,从结束层VC中获取逐层赋值的初始层VC的标识信息,实现将界面回退至初始层VC进行显示的操作,即本实施例通过将初始层VC的标识信息逐层赋值至下层VC中,使结束层VC在回退到初始层VC时无需进行复杂的层级计算,仅需要通过预先配置的完成时回调属性,触发执行与初始层VC的标识信息相关联的指定操作,即可将界面回退至初始层VC进行显示。解决了相关技术中,在计算结束层VC与初始层VC间的层级关系时,辅助判断条件过多,导致计算方式复杂且结果的错误率较高,使最终跳转或者回退的界面并不是初始层VC对应的界面的问题,实现了提高回退过程的准确性和便利性的效果。
本公开实施例提供的回退显示处理装置,与本公开任意实施例提供的回退显示处理方法属于同一构思,未在本公开实施例中详尽描述的技术细节可参见上述实施例,并且本公开实施例与上述实施例具有相同的效果。
实施例四
本公开实施例四提供了一种电子设备,下面参考图4,图4示出了适于用来实现本公开实施例的电子设备(例如客户端或服务器端)400的结构示意图。本公开实施例中的电子设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、个人数字助理(Personal Digital Assistant,PDA)、平板电脑(PAD)、便携式多媒体播放器(Portable Media Player,PMP)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字电视机(Television,TV)、台式计算机等等的固定终端。图4示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图4所示,电子设备400可以包括处理装置(例如中央处理器、图形处理器等)401,其可以根据存储在只读存储器(Read-Only Memory,ROM)402中的程序或者从存储装置408加载到随机访问存储器(Random Access Memory,RAM)403中的程序而执行多种适当的动作和处理。在RAM 403中,还存储有电子设备400操作所需的多种程序和数据。处理装置401、ROM 402以及RAM 403通过总线404彼此相连。输入/输出(Input/Output,I/O)接口405也连接至总线404。
通常,以下装置可以连接至I/O接口405:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置406;包括例如液晶显 示器(Liquid Crystal Display,LCD)、扬声器、振动器等的输出装置407;包括例如磁带、硬盘等的存储装置408;以及通信装置409。通信装置409可以允许电子设备400与其他设备进行无线或有线通信以交换数据。虽然图4示出了具有多种装置的电子设备400,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置409从网络上被下载和安装,或者从存储装置408被安装,或者从ROM 402被安装。在该计算机程序被处理装置401执行时,执行本公开实施例的回退显示处理方法中限定的上述功能。
实施例五
本公开实施例五还提供了一种计算机可读存储介质,计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、RAM、ROM、可擦式可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、射频(Radio Frequency,RF)等等,或者上述的任意合适的组合。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:创建与显示任务对应的至少三层任务VC,至少三层任务VC依次包括:初始层VC、至少一个过渡层VC以及结束层VC;在对显示任务的显示过程中,将初始层VC的标识信息逐层赋值至下层VC中其中,所述下层VC包括所述至少一个过渡层VC以及所述结束层VC;在检测到针对结束层VC的结束任务响应的情况下,根据结束任务响应触发的在结束层VC中预先配置的完成时回调属性,从结束层VC中获取逐层赋值的初始层VC的标识信息,将界面回退至初始层VC进行显示。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(Local Area Network,LAN)或广域网(Wide Area Network,WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的模块可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,模块的名称在一种情况下并不构成对该模块本身的限定。

Claims (11)

  1. 一种回退显示处理方法,包括:
    创建与显示任务对应的至少三层任务视图控制器VC,其中,所述至少三层任务VC依次包括:初始层VC、至少一个过渡层VC以及结束层VC;
    在对所述显示任务的显示过程中,将所述初始层VC的标识信息逐层赋值至下层VC中,其中,所述下层VC包括所述至少一个过渡层VC以及所述结束层VC;
    在检测到针对所述结束层VC的结束任务响应的情况下,根据所述结束任务响应触发的在所述结束层VC中预先配置的完成时回调属性,从所述结束层VC中获取逐层赋值的所述初始层VC的标识信息,将界面回退至所述初始层VC进行显示。
  2. 根据权利要求1所述的方法,其中,所述在对所述显示任务的显示过程中,将所述初始层VC的标识信息逐层赋值至下层VC中,包括:
    在检测到从所述初始层VC进入至下一级的第一过渡层VC的视图切换指令的情况下,对所述第一过渡层VC进行显示;
    获取所述初始层VC的标识信息并将所述初始层VC的标识信息赋值给所述第一过渡层VC中的目标参数。
  3. 根据权利要求2所述的方法,在获取所述初始层VC的标识信息并将所述初始层VC的标识信息赋值给所述第一过渡层VC中的目标参数之后,还包括:
    在检测到从所述第一过渡层VC进入至下一级的第二过渡层VC的视图切换指令的情况下,对所述第二过渡层VC进行显示;
    获取所述第一过渡层VC中目标参数的参数值,其中,所述第一过渡层VC中目标参数的参数值为所述初始层VC的标识信息;
    将所述第一过渡层VC中目标参数的参数值赋值给所述第二过渡层VC中的目标参数。
  4. 根据权利要求2所述的方法,在所述获取所述初始层VC的标识信息并将所述初始层VC的标识信息赋值给所述第一过渡层VC中的目标参数之后,还包括:
    在所述至少一个过渡层VC包括所述第一过渡层VC和第三过渡层VC且检测到从所述第一过渡层VC进入至所述第三过渡层VC的视图切换指令的情况下,对所述第三过渡层VC进行显示;
    获取所述第一过渡层VC中目标参数的参数值,其中,所述第一过渡层VC中目标参数的参数值为所述初始层VC的标识信息;
    将所述第一过渡层VC中目标参数的参数值赋值给所述第三过渡层VC中的目标参数;
    在检测到从所述第三过渡层VC进入至所述结束层VC的视图切换指令的情况下,对所述结束层VC进行显示;
    获取所述第三过渡层VC中目标参数的参数值,其中,所述第三过渡层VC中目标参数的参数值为所述初始层VC的标识信息;
    将所述第三过渡层VC中目标参数的参数值赋值给所述结束层VC中的目标参数。
  5. 根据权利要求3所述的方法,在所述将所述第一过渡层VC中目标参数的参数值赋值给所述第二过渡层VC中的目标参数之后,还包括:
    在所述至少一个过渡层VC包括所述第一过渡层VC、所述第二过渡层VC和第三过渡层VC且检测到从所述第二过渡层VC进入至所述第三过渡层VC的视图切换指令的情况下,对所述第三过渡层VC进行显示;
    获取所述第二过渡层VC中目标参数的参数值,其中,所述第二过渡层VC中目标参数的参数值为所述初始层VC的标识信息;
    将所述第二过渡层VC中目标参数的参数值赋值给所述第三过渡层VC中的目标参数;
    检测到从所述第三过渡层VC进入至所述结束层VC的视图切换指令的情况下,对所述结束层VC进行显示;
    获取所述第三过渡层VC中目标参数的参数值,其中,所述第三过渡层VC中目标参数的参数值为所述初始层VC的标识信息;
    将所述第三过渡层VC中目标参数的参数值赋值给所述结束层VC中的目标参数。
  6. 根据权利要求4或5所述的方法,其中,所述从所述结束层VC中获取逐层赋值的所述初始层VC的标识信息,将界面回退至所述初始层VC进行显示,包括:
    获取所述结束层VC中参数值为所述初始层VC的标识信息的目标参数,根据获取的所述初始层VC的标识信息将界面回退至所述初始层VC进行显示。
  7. 一种回退显示处理装置,包括:
    创建模块,设置为创建与显示任务对应的至少三层任务视图控制器VC,所述至少三层任务VC依次包括:初始层VC、至少一个过渡层VC以及结束层VC;
    赋值模块,设置为在对所述显示任务的显示过程中,将所述初始层VC的标识信息逐层赋值至下层VC中,其中,所述下层VC包括所述至少一个过渡层VC以及所述结束层VC;
    回退模块,设置为在检测到针对所述结束层VC的结束任务响应的情况下,根据所述结束任务响应触发的在所述结束层VC中预先配置的完成时回调属性,从所述结束层VC中获取逐层赋值的所述初始层VC的标识信息,将界面回退至所述初始层VC进行显示。
  8. 根据权利要求7所述的装置,其中,所述赋值模块,包括:
    第一显示单元,设置为在检测到从所述初始层VC进入至下一级的第一过渡层VC的视图切换指令的情况下,对所述第一过渡层VC进行显示;
    第一赋值单元,设置为获取所述初始层VC的标识信息并将所述初始层VC的标识信息赋值给所述第一过渡层VC中的目标参数。
  9. 根据权利要求8所述的装置,其中,所述赋值模块,还包括:
    第二显示单元,设置为在检测到从所述第一过渡层VC进入至下一级的第二过渡层VC的视图切换指令的情况下,对所述第二过渡层VC进行显示;
    第一获取单元,设置为获取所述第一过渡层VC中目标参数的参数值,其中,所述第一过渡层VC中目标参数的参数值为所述初始层VC的标识信息;
    第二赋值单元,设置为将所述第一过渡层VC中目标参数的参数值赋值给所述第二过渡层VC中的目标参数。
  10. 一种电子设备,包括:
    一个或多个处理器;
    存储器,设置为存储一个或多个程序;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-6任一项所述的回退显示处理方法。
  11. 一种计算机可读存储介质,存储有计算机程序,所述程序被处理器执行时实现如权利要求1-6任一项所述的回退显示处理方法。
PCT/CN2020/070691 2019-03-13 2020-01-07 回退显示处理方法、装置、设备及介质 Ceased WO2020181912A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910190551.1A CN111694624B (zh) 2019-03-13 2019-03-13 回退显示处理方法、装置、设备及介质
CN201910190551.1 2019-03-13

Publications (1)

Publication Number Publication Date
WO2020181912A1 true WO2020181912A1 (zh) 2020-09-17

Family

ID=72426523

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/070691 Ceased WO2020181912A1 (zh) 2019-03-13 2020-01-07 回退显示处理方法、装置、设备及介质

Country Status (2)

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

Citations (3)

* 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
CN106843953A (zh) * 2017-01-16 2017-06-13 百融(北京)金融信息服务股份有限公司 基于iOS系统的应用程序横向切换系统和方法
CN108984245A (zh) * 2018-06-20 2018-12-11 武汉斑马快跑科技有限公司 一种基于单一视图控制器的页面切换方法及系统

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661390B (zh) * 2009-09-16 2012-09-26 杭州华三通信技术有限公司 一种联动显示及跳转控制方法及装置
CN102929941A (zh) * 2012-09-29 2013-02-13 四川长虹电器股份有限公司 基于安卓平台浏览器Web页面的滑动加载方法
US9880861B2 (en) * 2013-06-05 2018-01-30 Tencent Technology (Shenzhen) Company Limited Method and apparatus for page view switching
CN104216773B (zh) * 2013-06-05 2018-10-16 腾讯科技(深圳)有限公司 视图切换方法和装置
CN104423785B (zh) * 2013-09-05 2019-06-14 腾讯科技(深圳)有限公司 一种视图切换方法及终端
US9875150B2 (en) * 2015-06-02 2018-01-23 Apple Inc. Method and system for processing notifications amongst applications of a data processing system
CN107463367B (zh) * 2017-06-22 2021-05-18 北京星选科技有限公司 转场动画实现方法及装置
CN107621951B (zh) * 2017-08-29 2020-12-29 口碑(上海)信息技术有限公司 一种视图层级优化的方法及装置
CN109413056B (zh) * 2018-10-15 2020-01-14 北京字节跳动网络技术有限公司 用于处理信息的方法和装置

Patent Citations (3)

* 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
CN106843953A (zh) * 2017-01-16 2017-06-13 百融(北京)金融信息服务股份有限公司 基于iOS系统的应用程序横向切换系统和方法
CN108984245A (zh) * 2018-06-20 2018-12-11 武汉斑马快跑科技有限公司 一种基于单一视图控制器的页面切换方法及系统

Also Published As

Publication number Publication date
CN111694624B (zh) 2021-12-10
CN111694624A (zh) 2020-09-22

Similar Documents

Publication Publication Date Title
JP7797716B2 (ja) メディアコンテンツの再生方法、装置、機器、記憶媒体、及びプログラム製品
CN110012339A (zh) 视频播放显示方法、装置、设备及存储介质
US10887210B2 (en) Online techniques for parameter mean and variance estimation in dynamic regression models
CN110688829A (zh) 表格生成方法、装置、设备及存储介质
JP7778967B2 (ja) ページ表示方法、装置、機器、コンピュータ可読記憶媒体及び製品
CN115022696A (zh) 视频预览方法、装置、可读介质及电子设备
US12167085B2 (en) Video processing method and apparatus, storage medium, and electronic device
EP4679348A1 (en) Virtual resource processing method and apparatus, device, storage medium, and program product
US12445572B2 (en) Method and apparatus of interaction video connection, electronic device, and storage medium
WO2020220773A1 (zh) 图片预览信息的显示方法、装置、电子设备及计算机可读存储介质
CN118363508A (zh) 媒体内容处理方法、装置、设备、可读存储介质及产品
CN118627486A (zh) 表格数据处理方法、装置、设备及存储介质
EP4607371A1 (en) Media content processing method and apparatus, and electronic device
CN114387402A (zh) 虚拟现实场景显示方法及装置、电子设备、可读存储介质
JP7769122B2 (ja) 仮想リソース転送方法、装置、機器、可読記憶媒体及び製品
CN110147283B (zh) 一种显示内容切换显示方法、装置、设备及介质
CN115802078B (zh) 视频流传输方法、装置、电子设备及计算机可读存储介质
CN116401173A (zh) 测试用例生成方法、装置、介质及电子设备
CN115619918A (zh) 图像渲染方法、装置、设备及存储介质
CN109542296A (zh) 一种标题的切换方法、装置、电子设备及可读介质
WO2020181912A1 (zh) 回退显示处理方法、装置、设备及介质
US12537906B2 (en) Video effect packet generation method and apparatus, device, and storage medium
CN114979749A (zh) 图形界面绘制方法、电子设备及可读存储介质
CN115314740B (zh) 显示页面交互控制方法、装置、电子设备及可读存储介质
CN119729061B (zh) 信息处理方法、装置、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20771053

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 21.01.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20771053

Country of ref document: EP

Kind code of ref document: A1