CN104423785B - A kind of view switching method and terminal - Google Patents

A kind of view switching method and terminal Download PDF

Info

Publication number
CN104423785B
CN104423785B CN201310400517.5A CN201310400517A CN104423785B CN 104423785 B CN104423785 B CN 104423785B CN 201310400517 A CN201310400517 A CN 201310400517A CN 104423785 B CN104423785 B CN 104423785B
Authority
CN
China
Prior art keywords
page
view controller
level
level page
page view
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.)
Active
Application number
CN201310400517.5A
Other languages
Chinese (zh)
Other versions
CN104423785A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310400517.5A priority Critical patent/CN104423785B/en
Publication of CN104423785A publication Critical patent/CN104423785A/en
Application granted granted Critical
Publication of CN104423785B publication Critical patent/CN104423785B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor

Landscapes

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

Abstract

The invention discloses the methods and terminal of a kind of switching of view, when wherein method includes: the next stage page of selected current page, establish the control planning between current page view controller and next stage page view controller;The transition effect of the next stage page is set in the current page view controller, the display effect of the next stage page is set in the next stage page view controller;According to the control planning, the current page view controller and next stage page view controller, switches and show the next stage page.A variety of transition effects, and the transition effect between the flexible setting pages at different levels can be provided using the present invention, and guarantees quickly to be back to the selected page.

Description

View switching method and terminal
Technical Field
The present invention relates to a view control technology, and in particular, to a view switching method and a terminal.
Background
Terminals such as smart phones are applied more and more widely, and applications that can be loaded in smart phones are more and more, and each application contains a plurality of views. When executing an application, switching among a plurality of views is required.
At present, the method of view switching mainly includes the following two methods:
firstly, managing a view controller corresponding to each level page by adopting a navigation controller. Specifically, the navigation controller puts view controllers corresponding to one or more hierarchy pages into a stack according to a hierarchy for management, and controls a switching effect between pages corresponding to each hierarchy view controller. However, the view switching effect of this method is uniformly managed by the navigation controller, and therefore, the switching effect is less; in addition, because the method adopts a stacking manner, when a page corresponding to the current application program multi-level controller is opened and a home page of the application program is to be returned, view controllers corresponding to each level page need to be quitted from the stack one by one, that is: and the current page is sequentially returned to the upper page step by step, and the home page of the application program is finally displayed, which is very inconvenient.
Secondly, a Tab view controller (Tab view controller) is adopted to control the view controller corresponding to each page, so that less switching effect can be provided; and, it is also limited by the size of the screen, resulting in the inability to display all tabs.
Therefore, the method for switching the view in the prior art cannot switch to the required page quickly and intuitively, and the switching effect between the pages is less.
Disclosure of Invention
In view of the above, an object of the embodiments of the present invention is to provide a view switching method and a terminal, which can at least solve the above problems in the prior art.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention provides a view switching method, which comprises the following steps:
when a next level page of the current page is selected, establishing a control relation between a current page view controller and a next level page view controller;
setting the switching effect of the next-level page in the current page view controller, and setting the display effect of the next-level page in the next-level page view controller;
and switching and displaying the next level page according to the control relation, the current page view controller and the next level page view controller.
In the above solution, when the next page of the current page is selected, establishing a control relationship between the current page view controller and the next page view controller includes:
selecting a page returned to a previous designated level or a next level page in the current page, and when the next level page is selected, establishing a control relation between a current page view controller and a next level page view controller; when the page is selected to return to the previous appointed level, deleting all pages behind the previous appointed level page.
In the foregoing solution, the establishing a control relationship between the current page view controller and the next-level page view controller includes:
establishing a view controller of the next level page according to the selected identifier of the next level page; adding a pointer pointing to a next-level page view controller in a current page view controller, and adding a pointer pointing to a previous-level page view controller in the next-level page view controller.
In the above scheme, the deleting all pages after the page of the previous designated level includes:
taking the front appointed level page as a current page, and finding a next level page view controller and all mutually linked page view controllers behind the next level page view controller according to a pointer which is stored in the view controller of the current page and points to the next level page view controller;
extracting a switching effect corresponding to a next-level page from the next-level page view controller, deleting the next-level page according to the switching effect, and deleting all pages behind the next-level page and corresponding view controllers according to all inter-linked page view controllers behind the next-level page view controller;
and deleting a pointer which points to the next level of page view controller in the current page view controller.
In the foregoing solution, the setting of the switching effect of the next-level page in the current page view controller includes:
selecting one or more cut-in effects and one or more cut-out effects from a switching effect set, combining the selected one or more cut-in effects, and storing the combined selected one or more cut-out effects in the current page view controller.
The present invention also provides a terminal, including: a management module, and one or more view controllers; wherein,
the management module is configured to establish a control relationship between the current page view controller and the next level page view controller when the next level page of the current page is selected; setting the switching effect of the next-level page in the current page view controller, and setting the display effect of the next-level page in the next-level page view controller; switching and displaying a next-level page according to the control relation, the current page view controller and a next-level page view controller;
the view controller is configured to operate according to control of the management module.
In the above solution, the management module is configured to select a page to be returned to a previous designated level or a next level page in a current page, and when the next level page is selected, establish a control relationship between the current page view controller and the next level page view controller; when the page is selected to return to the previous appointed level, deleting all pages behind the previous appointed level page.
In the above scheme, the management module is configured to establish a view controller of the next-level page according to the identifier of the selected next-level page; adding a pointer pointing to a next-level page view controller in a current page view controller, and adding a pointer pointing to a previous-level page view controller in the next-level page view controller.
In the above solution, the management module is configured to use the previously specified level page as a current page, and find a next level page view controller and all page view controllers linked with each other behind the next level page view controller according to a pointer pointing to the next level page view controller and stored in the view controller of the current page; extracting a switching effect corresponding to a next-level page from the next-level page view controller, deleting the next-level page according to the switching effect, and deleting all pages behind the next-level page and corresponding view controllers according to all inter-linked page view controllers behind the next-level page view controller; and deleting a pointer which points to the next level of page view controller in the current page view controller.
In the foregoing solution, the management module is configured to select one or more cut-in effects and one or more cut-out effects from a switching effect set, combine the selected one or more cut-in effects, combine the selected one or more cut-out effects, and store the combined result in the next-level page view controller.
The view switching method and the terminal provided by the embodiment of the invention can establish the control relationship between the current page view controller and the next level page view controller when the next level page of the current page is selected; and switching and displaying the next-level page according to the switching effect of the next-level page set in the current page view controller and the display effect of the next-level page set in the next-level page view controller. Therefore, the switching effect corresponding to each page can be determined in the view controller of each page, so that multiple switching effects can be provided for view switching, and the switching effect corresponding to each page in each level of pages can be flexibly set.
In addition, because the control relation is established among the view controllers of each level, when the navigation controller is switched back to the selected page, the problem of complicated operation caused by first entering and then exiting in the stack type management method of the navigation controller in the prior art can be avoided, and the navigation controller can be ensured to be quickly switched back to the selected page.
Drawings
FIG. 1 is a schematic processing flow diagram illustrating a view switching method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating control relationships between controllers according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a cut-in effect of controlling a next-level page according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a display effect of a next page according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The basic idea of the embodiment of the invention is as follows: when a next level page of the current page is selected, establishing a control relation between a current page view controller and a next level page view controller; setting the switching effect of the next-level page in the current page view controller, and setting the display effect of the next-level page in the next-level page view controller; and switching and displaying the next level page according to the control relation, the current page view controller and the next level page view controller.
The embodiments of the present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
The view switching method provided by the embodiment of the invention, as shown in fig. 1, includes the following steps:
step 101: and when the next level page of the current page is selected, establishing a control relation between the current page view controller and the next level page view controller.
Specifically, in the current page, a page returned to a previous designated level or a next level page is selected, and when the next level page is selected, a control relationship between a current page view controller and a next level page view controller is established; when the page is selected to return to the previous appointed level, deleting all pages behind the previous appointed level page.
Here, the current page may be a home page of the currently opened application program, or may be any page of the currently opened application program.
The selected next level page is: and selecting any one directory from the directories provided by the current page as the selected next-level page.
Wherein, the establishing of the control relationship may be generating a control chain; the establishing of the control relationship between the current page view controller and the next level page view controller comprises: establishing a view controller of the next level page according to the selected identifier of the next level page;
adding a pointer pointing to a next-level page view controller in a current page view controller, and adding a pointer pointing to a previous-level page view controller in the next-level page view controller.
The control relationship between the view controllers is as shown in fig. 2, wherein it is assumed that the page corresponding to the view controller 1 is the home page of the currently opened application, the view controller 2 corresponds to the second-level page, and so on, the view controller n-1 is the current page view controller, the view controller n is the next-level page view controller, the pointer of the view controller n-1 pointing to the next-level page view controller points to the view controller n, and the pointer of the view controller n pointing to the previous-level page view controller points to the view controller n-1.
The establishing of the view controller of the next level page according to the selected identifier of the next level page is as follows: the method is implemented by using a Model-View-Controller (MVC) technology, which is a prior art and is not described herein. The method for adding the pointer is the prior art, and is not described herein.
The page of the previous designated level is as follows: and pages with a specified number of levels before the current page are selected according to the user operation, for example, when the current page is a fifth-level page, the front specified-level page is a second-level page selected by the user.
Deleting all pages after the page of the front designated level, including: taking the front appointed level page as a current page, and finding a next level page view controller and all mutually linked page view controllers behind the next level page view controller according to a pointer which is stored in the view controller of the current page and points to the next level page view controller; extracting a switching effect corresponding to a next-level page from the next-level page view controller, deleting the next-level page according to the switching effect, and deleting all pages behind the next-level page and corresponding view controllers according to all inter-linked page view controllers behind the next-level page view controller; and deleting the pointer pointing to the next level page view controller in the current page view controller.
Wherein, the deleting the pointer pointing to the next page view controller in the current page view controller may be to set the pointer pointing to the next page view controller to null.
Step 102: and setting the switching effect of the next-level page in the current page view controller, and setting the display effect of the next-level page in the next-level page view controller.
Here, the setting of the switching effect of the next level page in the current page view controller includes: selecting one or more cut-in effects and one or more cut-out effects from a switching effect set, combining the selected one or more cut-in effects, and storing the combined selected one or more cut-out effects in the current page view controller.
The set of switching effects comprises: one or more cut-in effects, and one or more cut-out effects. For example, the cut-in effect may include fly-in, fade; the cut-out effect may include fly-out, direct undo, etc.
The setting of the display effect in the next-level page view controller includes: the position of the specified edge in the next-level page relative to the same specified edge in the current page is set, for example, the positions may be set as: the left edge, the right edge and the lower edge of the next-level page are respectively superposed with the left edge, the right edge and the lower edge of the current page, and the upper edge of the next-level page moves downwards by a specified length compared with the upper edge of the current page.
For example, to realize the cut-in effect of the fly-in and the cut-out effect of the fly-out in a hierarchical manner, the hierarchical relationship between views is reflected by the control relationship shown in fig. 2, the cut-in and cut-out effects of the views held by the view controllers of the next page are obtained, and if the cut-in and cut-out effects of the respective pages to be set are identical, the same switching effect is selected by the respective view controllers, so that the consistency is maintained. Moreover, the control relation scheme can provide different switching effects for pages of each hierarchy respectively, and has strong expansibility.
Step 103: and switching and displaying the next level page according to the control relation, the current page view controller and the next level page view controller.
Specifically, the next-level page view controller is determined according to the control relationship between the current page view controller and the next-level page view controller, the next-level page is switched into a screen according to the switching effect in the current page view controller, the next-level page is displayed according to the display effect in the next-level page view controller, the next-level page is used as the current page, and the next-level page view controller is used as the current page controller.
For example, fig. 3 shows that the next-level page enters the screen according to the next-level page view controller, that is, the cut-in effect of the fly-in is about to be adopted; fig. 4 shows that the left edge of the next page is displayed at a specified length from the left edge of the current page according to the setting in the next page view controller, and the next page is taken as the current page.
Further, after the step 103 is completed, the step 101 may be returned to according to the operation of the user.
Therefore, by using the method provided by the embodiment of the invention, the switching effect corresponding to each page can be determined in the view controller of each page, so that multiple switching effects can be provided for view switching, and the switching effect corresponding to each page in each level of pages can be flexibly set. Moreover, because the control relation is established among the view controllers of each level, when the navigation controller is switched back to the selected page, the problem of complicated operation caused by first entering and then exiting in the stack type management method of the navigation controller in the prior art can be avoided, and thus, the navigation controller can be ensured to be quickly switched back to the selected page.
As shown in fig. 5, the terminal provided in the embodiment of the present invention includes: a management module and one or more view controllers; wherein,
the management module is configured to establish a control relationship between the current page view controller and the next level page view controller when the next level page of the current page is selected; setting the switching effect of the next-level page in the current page view controller, and setting the display effect of the next-level page in the next-level page view controller; switching and displaying a next-level page according to the control relation, the current page view controller and a next-level page view controller;
the view controller is configured to operate according to control of the management module.
The management module is configured to select a page returned to a previous designated level or a next level page in a current page, and when the next level page is selected, establish a control relationship between the current page view controller and the next level page view controller; when the page is selected to return to the previous appointed level, deleting all pages behind the previous appointed level page.
The management module is configured to take any one of the directories provided by the current page by the user as a selected next-level page.
The management module is configured to establish a view controller of the next level page according to the selected identifier of the next level page; adding a pointer pointing to a next-level page view controller in a current page view controller, and adding a pointer pointing to a previous-level page view controller in the next-level page view controller; correspondingly, the view controller is also configured to save a pointer pointing to the upper level page view controller and a pointer pointing to the lower level page view controller.
The control relationship between the view controllers can be implemented by a control chain, as shown in fig. 2, where it is assumed that the page corresponding to the view controller 1 is the first page of the currently opened application, the view controller 2 corresponds to the second-level page, and so on, the view controller n-1 is the current page view controller, the view controller n is the next-level page view controller, and the pointer of the view controller n-1 pointing to the next-level page view controller points to the view controller n, and the pointer of the view controller n pointing to the previous-level page view controller points to the view controller n-1.
The management module is configured to establish a corresponding view controller for an MVC technology, which is the prior art and is not described herein in detail.
The management module is configured to use a front appointed level page selected by a user as a current page, and find a next level page view controller and all mutually linked page view controllers behind the next level page view controller according to a pointer which is stored in the current page view controller and points to the next level page view controller; extracting a switching effect corresponding to a next-level page from the next-level page view controller, deleting the next-level page according to the switching effect, and deleting all pages behind the next-level page and corresponding view controllers according to all inter-linked page view controllers behind the next-level page view controller; and deleting the pointer pointing to the next level page view controller in the current page view controller. Wherein, the deleting the pointer pointing to the next page view controller in the current page view controller may be to set the pointer pointing to the next page view controller to null.
The management module is configured to select one or more cut-in effects and one or more cut-out effects from a switching effect set, combine the selected one or more cut-in effects, and store the combined selected one or more cut-out effects in the current page view controller. Wherein the set of switching effects comprises: one or more cut-in effects, and one or more cut-out effects. For example, the cut-in effect may include fly-in, fade; the cut-out effect may include fly-out, direct undo, etc.
The management module is configured to set a position of a specified edge in a next-level page relative to a same specified edge in a current page, for example, the position may be set as: the left edge, the right edge and the lower edge of the next-level page are respectively superposed with the left edge, the right edge and the lower edge of the current page, and the upper edge of the next-level page moves downwards by a specified length compared with the upper edge of the current page.
For example, to realize the cut-in effect of the fly-in and the cut-out effect of the fly-out in a hierarchical manner, the hierarchical relationship between views is reflected by the control relationship shown in fig. 2, the cut-in and cut-out effects of the views held by the view controllers of the next page are obtained, and if the cut-in and cut-out effects of the respective pages to be set are identical, the same switching effect is selected by the respective view controllers, so that the consistency is maintained. Moreover, the control relation scheme can provide different switching effects for pages of each hierarchy respectively, and has strong expansibility.
The management module is configured to determine a next-level page view controller according to the control relationship between the current page view controller and the next-level page view controller, switch the next-level page into a screen according to a switching effect in the next-level page view controller, display the next-level page according to a display effect in the next-level page view controller, and use the next-level page as a current page and the next-level page view controller as a current page controller.
For example, fig. 3 shows that the next-level page enters the screen according to the next-level page view controller, that is, the cut-in effect of the fly-in is about to be adopted; fig. 4 shows that the left edge of the next page is displayed at a specified length from the left edge of the current page according to the setting in the next page view controller, and the next page is taken as the current page.
Therefore, by using the terminal provided by the embodiment of the invention, the switching effect corresponding to each page is determined in the view controller of each page, so that multiple switching effects are ensured to be provided for view switching, and the switching effect corresponding to each page in each level of pages is flexibly set. Because the control relation is established between each level of view controllers, when the navigation controller is switched back to the selected page, the problem of complicated operation caused by first entering and then exiting in the stack type management method of the navigation controller in the prior art can be avoided, and thus, the navigation controller can be ensured to be quickly switched back to the selected page.
Embodiments of the present invention also provide a computer-readable storage medium comprising a set of instructions that, when executed, cause at least one processor to perform operations comprising:
when a next level page of the current page is selected, establishing a control relation between a current page view controller and a next level page view controller;
setting the switching effect of the next-level page in the current page view controller, and setting the display effect of the next-level page in the next-level page view controller;
and switching and displaying the next level page according to the control relation, the current page view controller and the next level page view controller.
Wherein the storage medium further comprises instructions that cause the at least one processor to perform operations comprising: in the current page, selecting a page returned to a previous designated level or selecting a next level page, and when the next level page is selected, establishing a control relation between a current page view controller and a next level page view controller; when the page is selected to return to the previous appointed level, deleting all pages behind the previous appointed level page.
The current page may be a home page of the currently opened application program, or may be any page of the currently opened application program. The selected next level page is: and selecting any one directory from the directories provided by the current page as the selected next-level page.
Wherein the storage medium further comprises instructions that cause the at least one processor to perform operations comprising:
establishing a view controller of the next level page according to the selected identifier of the next level page; adding a pointer pointing to a next-level page view controller in a current page view controller, and adding a pointer pointing to a previous-level page view controller in the next-level page view controller.
Wherein the storage medium further comprises instructions that cause the at least one processor to perform operations comprising:
the MVC technology is realized by using the MVC technology, which is the prior art and is not described herein in detail. The method for adding the pointer is the prior art, and is not described herein. The page of the previous designated level is as follows: and pages with a specified number of levels before the current page are selected according to the user operation, for example, when the current page is a fifth-level page, the front specified-level page is a second-level page selected by the user.
Wherein the storage medium further comprises instructions that cause the at least one processor to perform operations comprising:
taking the front appointed level page as a current page, and finding a next level page view controller and all mutually linked page view controllers behind the next level page view controller according to a pointer which is stored in the view controller of the current page and points to the next level page view controller;
extracting a switching effect corresponding to a next-level page from the next-level page view controller, deleting the next-level page according to the switching effect, and deleting all pages behind the next-level page and corresponding view controllers according to all inter-linked page view controllers behind the next-level page view controller;
and deleting the pointer pointing to the next level page view controller in the current page view controller.
Wherein the storage medium further comprises instructions that cause the at least one processor to perform operations comprising: the deleting of the pointer to the next page view controller in the current page view controller may be setting the pointer to the next page view controller to null.
Wherein the storage medium further comprises instructions that cause the at least one processor to perform operations comprising:
selecting one or more cut-in effects and one or more cut-out effects from a switching effect set, combining the selected one or more cut-in effects, and storing the combined selected one or more cut-out effects in the current page view controller. The set of switching effects comprises: one or more cut-in effects, and one or more cut-out effects. For example, the cut-in effect may include fly-in, fade; the cut-out effect may include fly-out, direct undo, etc.
Wherein the storage medium further comprises instructions that cause the at least one processor to perform operations comprising:
the position of the specified edge in the next-level page relative to the same specified edge in the current page is set, for example, the positions may be set as: the left edge, the right edge and the lower edge of the next-level page are respectively superposed with the left edge, the right edge and the lower edge of the current page, and the upper edge of the next-level page moves downwards by a specified length compared with the upper edge of the current page.
For example, to realize the cut-in effect of the fly-in and the cut-out effect of the fly-out in a hierarchical manner, the hierarchical relationship between views is reflected by the control relationship shown in fig. 2, the cut-in and cut-out effects of the views held by the view controllers of the next page are obtained, and if the cut-in and cut-out effects of the respective pages to be set are identical, the same switching effect is selected by the respective view controllers, so that the consistency is maintained. In addition, the control relation scheme can provide support for various switching effects and has strong expansibility.
Wherein the storage medium further comprises instructions that cause the at least one processor to perform operations comprising:
determining a next-level page view controller according to the control relationship between the current page view controller and the next-level page view controller, switching the next-level page into a screen according to the switching effect in the next-level page view controller, displaying the next-level page according to the display effect in the next-level page view controller, taking the next-level page as the current page, and taking the next-level page view controller as the current page controller.
For example, fig. 3 shows that the next-level page enters the screen according to the next-level page view controller, that is, the cut-in effect of the fly-in is about to be adopted; fig. 4 shows that the left edge of the next page is displayed at a specified length from the left edge of the current page according to the setting in the next page view controller, and the next page is taken as the current page.
Wherein the storage medium further comprises instructions that cause the at least one processor to perform operations comprising:
and after the next-level page is switched and displayed according to the next-level page view controller, establishing a control relationship between the current page view controller and the next-level page view controller when the next-level page of the current page is continuously selected according to the operation of a user.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (10)

1. A method of view switching, the method comprising:
when a next level page of the current page is selected, establishing a control relation between a current page view controller and a next level page view controller; wherein the control relationship comprises a control chain;
setting the switching effect of the next-level page in the current page view controller, and setting the display effect of the next-level page in the next-level page view controller;
switching and displaying a next-level page according to the control relation, the current page view controller and a next-level page view controller; the pointer of the current page view controller pointing to a next-level page view controller points to the next-level page view controller, and the pointer of the next-level page view controller pointing to a previous-level page view controller points to the current page view controller; the control relation between the view controllers is realized by the control chain;
wherein the next level page of the current page comprises: and selecting any one directory from the directories provided by the current page as the selected next-level page.
2. The method according to claim 1, wherein when the next page of the current page is selected, establishing a control relationship between the current page view controller and the next page view controller comprises:
selecting a page returned to a previous designated level or a next level page in the current page, and when the next level page is selected, establishing a control relation between a current page view controller and a next level page view controller; when the page is selected to return to the previous appointed level, deleting all pages behind the previous appointed level page.
3. The method of claim 2, wherein establishing a control relationship between a current page view controller and a next level page view controller comprises:
establishing a view controller of the next level page according to the selected identifier of the next level page; adding a pointer pointing to a next-level page view controller in a current page view controller, and adding a pointer pointing to a previous-level page view controller in the next-level page view controller.
4. The method of claim 2, wherein said deleting all pages subsequent to said pre-specified level page comprises:
taking the front appointed level page as a current page, and finding a next level page view controller and all mutually linked page view controllers behind the next level page view controller according to a pointer which is stored in the view controller of the current page and points to the next level page view controller;
extracting a switching effect corresponding to a next-level page from the next-level page view controller, deleting the next-level page according to the switching effect, and deleting all pages behind the next-level page and corresponding view controllers according to all inter-linked page view controllers behind the next-level page view controller;
and deleting a pointer which points to the next level of page view controller in the current page view controller.
5. The method according to claim 1, wherein said setting the switching effect of the next level page in the current page view controller comprises:
selecting one or more cut-in effects and one or more cut-out effects from a switching effect set, combining the selected one or more cut-in effects, and storing the combined selected one or more cut-out effects in the current page view controller.
6. A terminal, characterized in that the terminal comprises: a management module, and one or more view controllers; wherein,
the management module is configured to establish a control relationship between the current page view controller and the next level page view controller when the next level page of the current page is selected; setting the switching effect of the next-level page in the current page view controller, and setting the display effect of the next-level page in the next-level page view controller; switching and displaying a next-level page according to the control relation, the current page view controller and a next-level page view controller; wherein the control relationship comprises a control chain; a pointer of the current page view controller pointing to a next-level page view controller points to the next-level page view controller, and a pointer of the next-level page view controller pointing to a previous-level page view controller points to the current page view controller; the control relation between the view controllers is realized by the control chain;
the view controller is configured to operate according to control of the management module;
the management module is also configured to select any one of the directories from the directories provided by the current page as a selected next-level page.
7. The terminal of claim 6,
the management module is configured to select a page returned to a previous designated level or a next level page in a current page, and when the next level page is selected, establish a control relationship between the current page view controller and the next level page view controller; when the page is selected to return to the previous appointed level, deleting all pages behind the previous appointed level page.
8. The terminal of claim 7,
the management module is configured to establish a view controller of the next level page according to the selected identifier of the next level page; adding a pointer pointing to a next-level page view controller in a current page view controller, and adding a pointer pointing to a previous-level page view controller in the next-level page view controller.
9. The terminal of claim 7,
the management module is configured to use the previously specified level page as a current page, and find a next level page view controller and all mutually linked page view controllers behind the next level page view controller according to a pointer which is stored in the view controller of the current page and points to the next level page view controller; extracting a switching effect corresponding to a next-level page from the next-level page view controller, deleting the next-level page according to the switching effect, and deleting all pages behind the next-level page and corresponding view controllers according to all inter-linked page view controllers behind the next-level page view controller; and deleting a pointer which points to the next level of page view controller in the current page view controller.
10. The terminal of claim 6,
the management module is configured to select one or more cut-in effects and one or more cut-out effects from a switching effect set, combine the selected one or more cut-in effects, and store the combined selected one or more cut-out effects in the next-level page view controller.
CN201310400517.5A 2013-09-05 2013-09-05 A kind of view switching method and terminal Active CN104423785B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310400517.5A CN104423785B (en) 2013-09-05 2013-09-05 A kind of view switching method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310400517.5A CN104423785B (en) 2013-09-05 2013-09-05 A kind of view switching method and terminal

Publications (2)

Publication Number Publication Date
CN104423785A CN104423785A (en) 2015-03-18
CN104423785B true CN104423785B (en) 2019-06-14

Family

ID=52972956

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310400517.5A Active CN104423785B (en) 2013-09-05 2013-09-05 A kind of view switching method and terminal

Country Status (1)

Country Link
CN (1) CN104423785B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106033372A (en) * 2015-03-19 2016-10-19 阿里巴巴集团控股有限公司 Page switching method and apparatus
CN106155662B (en) * 2015-04-15 2019-11-15 高德软件有限公司 A kind of Web page event-handling method, system and page controller
CN107105334A (en) * 2017-05-24 2017-08-29 环球智达科技(北京)有限公司 Intelligent television page skip device
CN107071574A (en) * 2017-05-24 2017-08-18 环球智达科技(北京)有限公司 Intelligent television method for page jump
CN107463367B (en) * 2017-06-22 2021-05-18 北京星选科技有限公司 Transition animation realization method and device
CN107609199B (en) * 2017-10-24 2021-01-12 阿里巴巴(中国)有限公司 Method, equipment and storage medium for processing and recovering page
CN111694624B (en) * 2019-03-13 2021-12-10 北京字节跳动网络技术有限公司 Rollback display processing method, apparatus, device and medium
CN113298579A (en) * 2020-02-21 2021-08-24 北京沃东天骏信息技术有限公司 Method and device for displaying product list
CN111459371B (en) * 2020-03-31 2021-09-28 北京奇艺世纪科技有限公司 View switching method and device, electronic equipment and storage medium
CN113568688B (en) * 2020-04-29 2023-06-06 RealMe重庆移动通信有限公司 View switching method and device, electronic equipment and storage medium
CN112604304B (en) * 2020-12-25 2022-09-02 珠海金山数字网络科技有限公司 Interaction control method and device for virtual objects
CN113435785A (en) * 2021-07-21 2021-09-24 广州博冠信息科技有限公司 Controller management method and device, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214068A (en) * 2011-04-28 2011-10-12 宇龙计算机通信科技(深圳)有限公司 Control method for page switching display and mobile terminal
CN102385473A (en) * 2010-09-02 2012-03-21 腾讯科技(深圳)有限公司 Page switching method and device
CN102799421A (en) * 2011-05-25 2012-11-28 腾讯科技(深圳)有限公司 Multi-view switching system and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130067394A1 (en) * 2011-09-12 2013-03-14 Microsoft Corporation Pointer invocable navigational user interface

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102385473A (en) * 2010-09-02 2012-03-21 腾讯科技(深圳)有限公司 Page switching method and device
CN102214068A (en) * 2011-04-28 2011-10-12 宇龙计算机通信科技(深圳)有限公司 Control method for page switching display and mobile terminal
CN102799421A (en) * 2011-05-25 2012-11-28 腾讯科技(深圳)有限公司 Multi-view switching system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《计算机技术基础讲座(连载十七)第八讲PowerPoint2003》;何祖顺;《印刷世界》;20121220;说明书第1-46段,附图1-8

Also Published As

Publication number Publication date
CN104423785A (en) 2015-03-18

Similar Documents

Publication Publication Date Title
CN104423785B (en) A kind of view switching method and terminal
CN107861784B (en) Desktop icon sorting method and device and mobile terminal
CN103116453B (en) A kind of operation management method of Drawing Object and operation management device
CN107850975B (en) Method and User Interface (UI) for customized user access to application functionality
CN103809975A (en) Method for achieving intelligent cloud forms
CN103955329A (en) Intelligent terminal, mobile terminal and operating method thereof
CN112269506B (en) Screen splitting method and device and electronic equipment
CN104219553A (en) Method and device for remote control of intelligent set top box
CN102306084A (en) Method and device for managing application programs
US20230153132A1 (en) Display method and apparatus, and storage medium
CN103019520A (en) Display method for optional item information of terminal application and terminal
CN107832337B (en) Page returning method, device and equipment
CN111045561A (en) Display method and device of function keys, terminal equipment and storage medium
CN114397989A (en) Parameter value setting method and device, electronic equipment and storage medium
WO2017053207A1 (en) Searching a data structure
CN106325681A (en) Method and device for switching menu items
CN110032673A (en) Page index, address list, client, data processing method and device
CN110968386A (en) Navigation bar processing method and system
CN106681719B (en) Android-based folder icon display method
CN104539801A (en) Method and terminal for presenting contact information
CN107369192B (en) Connection relation processing method and device
US11847294B2 (en) Method for generating desktop of mobile terminal, device and electronic device
CN104793848A (en) Information processing method and electronic equipment
CN105468252A (en) Application software operation interface display method and apparatus
CN106126056A (en) A kind of lantern slide based on PowerPoint automatically creates method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant