CN105808103B - A kind of method and apparatus for being switched to main screen based on iOS system - Google Patents
A kind of method and apparatus for being switched to main screen based on iOS system Download PDFInfo
- Publication number
- CN105808103B CN105808103B CN201610125025.3A CN201610125025A CN105808103B CN 105808103 B CN105808103 B CN 105808103B CN 201610125025 A CN201610125025 A CN 201610125025A CN 105808103 B CN105808103 B CN 105808103B
- Authority
- CN
- China
- Prior art keywords
- home
- request information
- switching
- application
- main screen
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 18
- 238000012790 confirmation Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 206010047571 Visual impairment Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
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)
- Stored Programmes (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The method for being switched to main screen based on iOS system that the present invention relates to a kind of, including:Step S1, judges whether user clicks the button B_Home on application extension Widget_Home in application program App_Home;Step S2, if the user clicks the button B_Home, the application extension Widget_Home calls itself container application APP_Home or application program To_Home;Step S3, itself container application APP_Home or described application programs To_Home judge whether call request information is the solicited message for being switched to main screen;Step S4, if the call request information is the solicited message for being switched to main screen, itself container application APP_Home or described application programs To_Home calls the application programming interface API of iOS system to exit the program.The present invention calls the API of iOS system to exit the program to return to main screen by itself container application APP_Home or application program To_Home, to improve user experience.
Description
Technical Field
The invention relates to the field of computers, in particular to a device for switching to a main screen based on an iOS system.
Background
The iOS system is an operating system of apple inc, and the home screen in iOS is where application icons or folders are placed. After entering the application program, if the user needs to return to the main screen of the iOS system, the user can click the Home key to return to the main screen of the iOS system, and can click the auxiliary click function and also return to the main screen from the application program.
Due to the limitation of the iOS system, when a user needs to switch from an application program interface to a main screen, the user can only switch from the application program to the main screen by pressing a Home key or using a Home screen returning mode provided by an auxiliary click function, and other general modes are not available, so that the use habit of the user is limited, and part of the users feel inconvenient.
Disclosure of Invention
The invention aims to provide a device for switching to a main screen based on an iOS system.
The technical scheme for solving the technical problems is as follows: a method of switching to a home screen based on an iOS system, comprising:
step S1, determine whether the user clicks the button B _ Home on the application extension Widget _ Home in the application App _ Home.
Step S2, if the user clicks the button B _ Home, the application extension Widget _ Home calls its own container application APP _ Home or application To _ Home.
Step S3, the self container application APP _ Home or the application To _ Home determines whether the call request information is the request information for switching To the Home screen.
Step S4, if the calling request information is the request information for switching To the Home screen, the APP _ Home of the self container application or the To _ Home of the application calls an API of an exit program of the iOS system.
The invention has the beneficial effects that: and calling the API of the exit program of the iOS system To return To the main screen through the APP _ Home of the self container application or the To _ Home of the application program, thereby improving the user experience.
On the basis of the technical scheme, the invention can be further improved as follows.
Further, the step S1 includes:
and judging whether the user touches the button B _ Home or not.
Further, the step S3 includes:
the self container application APP _ Home or the application program To _ Home judges whether the parameters in the calling request information are consistent with the parameters in the request information for switching To the main screen;
or,
judging whether the calling request information is the request information for switching To the main screen or not through the setting information of the application program To _ Home;
or,
confirming, by the user, whether to switch the invocation request information to the request information of the home screen.
Further, the step S4 includes:
if the calling request information is the request information for switching To the main screen, the application program To _ Home directly calls the API of the exit program of the iOS system;
or,
and if the calling request information is the request information for switching To the main screen, the application program To _ Home calls an application program App _ O, and the application program App _ O calls an API of an exit program of the iOS system.
Further, before the step S4, the method further includes:
judging whether the current setting allows the request information for switching to the main screen; or,
judging whether other operations need to be executed or not; or,
request information for making the user confirm again whether to switch to the main screen according to the popped up button; or,
and closing the pop-up window or switching to the request information of the main screen after delaying.
Another technical solution of the present invention for solving the above technical problems is as follows: an iOS system-based apparatus for switching to a home screen, comprising:
the first judgment unit is used for judging whether a user clicks a button B _ Home on the application extension Widget _ Home in the application App _ Home;
the first calling unit is used for calling an application APP _ Home or an application program To _ Home of a self container by the application extension Widget _ Home under the condition that the user clicks the button B _ Home;
a second judging unit, configured To judge, by the APP _ Home of the self container or by the To _ Home of the application program, whether the call request information is request information for switching To a Home screen;
and the second calling unit is used for calling an Application Programming Interface (API) of an exit program of the iOS system by the self-container application APP _ Home or the application program To _ Home under the condition that the calling request information is the request information for switching To the main screen.
On the basis of the technical scheme, the invention can be further improved as follows.
Further, the first judgment unit includes:
and judging whether the user touches the button B _ Home or not.
Further, the second determination unit includes:
the self container application APP _ Home or the application program To _ Home judges whether the parameters in the calling request information are consistent with the parameters in the request information for switching To the main screen;
or,
judging whether the calling request information is the request information for switching To the main screen or not through the setting information of the application program To _ Home; or,
confirming, by the user, whether to switch the invocation request information to the request information of the home screen.
Further, the second calling unit includes:
if the calling request information is the request information for switching To the main screen, the application program To _ Home directly calls the API of the exit program of the iOS system;
or,
and if the calling request information is the request information for switching To the main screen, the application program To _ Home calls an application program App _ O, and the application program App _ O calls an API of an exit program of the iOS system.
Further, before the second calling unit, a switching confirmation unit is further included:
judging whether the current setting allows the request information for switching to the main screen; or,
judging whether other operations need to be executed or not; or,
request information for making the user confirm again whether to switch to the main screen according to the popped up button; or,
and closing the pop-up window or switching to the request information of the main screen after delaying.
Drawings
Fig. 1 is a flowchart of a method for switching to a home screen based on an iOS system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an apparatus for switching to a home screen based on an iOS system according to an embodiment of the present invention.
In the drawings, the components represented by the respective reference numerals are listed below:
10. the device comprises a first judging unit 20, a first calling unit 30, a second judging unit 40 and a second calling unit.
Detailed Description
The principles and features of this invention are described below in conjunction with the following drawings, which are set forth by way of illustration only and are not intended to limit the scope of the invention.
Fig. 1 is a flowchart of a method for switching to a home screen based on an iOS system according to an embodiment of the present invention.
Referring to fig. 1, in step S1, it is determined whether the user clicks a button B _ Home on an application extension (APPExtension) Widget _ Home in the application App _ Home.
Specifically, it is determined whether the user has performed one of a single click, a continuous click, a slide, a lift, and a multi-touch operation on the button B _ Home, and if the user performs one or more of the above operations, the determination result is yes. Here, the method for the user to click on B _ Home may be: firstly, opening a notification center by sliding down, and then selecting a today page in the notification center; and finally clicking a button B _ Home in the Widget _ Home.
Wherein the appearance of the button B _ Home may be identified using an image, animation, text, color block, transparent color, or a combination thereof.
Step S2, if the user clicks the button B _ Home, the application extension Widget _ Home calls its own container application (containment APP) APP _ Home or application To _ Home.
Step S3, the self container application APP _ Home or the application To _ Home determines whether the call request information is the request information for switching To the Home screen; if the calling request information is the request information for switching to the main screen, performing step S4; if the invocation request information is not the request information for switching to the home screen, step S5 is performed.
Step S4, the APP _ Home of the self container application or the To _ Home of the application program calls an API of an exit program of the iOS system.
In step S5, the request information for switching to the main screen is not required.
In this embodiment, the step S1 includes:
and judging whether the user touches the button B _ Home or not.
In this embodiment, the step S3 includes:
the self container application APP _ Home or the application program To _ Home judges whether the parameters in the calling request information are consistent with the parameters in the request information for switching To the main screen;
or,
judging whether the calling request information is the request information for switching To the main screen or not through the setting information of the application program To _ Home;
or,
confirming, by the user, whether to switch the invocation request information to the request information of the home screen.
Specifically, the method for calling the container application App _ Home of the application extension Widget _ Home may be that the Widget _ Home transmits the parameter C to the container application App _ Home of the application extension Widget _ Home through an openURL method provided by today extension.
The following steps can be also included: the Widget _ Home shares the parameter C to the own container application App _ Home through the NSUserDefaults method provided by the iOS system.
The purpose of transferring the parameter C is to notify the App _ Home of the Widget _ Home, and a user needs to switch to a main screen. The expression of the parameter C may be zero, i.e. no parameter by default, or may be one parameter or a combination of parameters.
After App _ Home is called, the message parameter sent by Widget _ Home can be received through a system function application provided by the iOS, so that the application extension Widget _ Home can be switched to a main screen message and sent to the own container application.
In this embodiment, the step S4 includes:
if the calling request information is the request information for switching To the main screen, the application program To _ Home directly calls the API of the exit program of the iOS system;
or,
and if the calling request information is the request information for switching To the main screen, the application program To _ Home calls an application program App _ O, and the application program App _ O calls an API of an exit program of the iOS system.
Specifically, whether directly or indirectly calling an API of an exit program provided by the iOS system, a method of switching to the home screen can be implemented.
In this embodiment, before the step S4, the method further includes:
before the execution of the switching to the main screen, whether other operations need to be executed or not, if so, the switching to the main screen can be continuously executed after images, characters and sounds are displayed.
After the container application receives the message, before executing the API of the exit application program of the calling system, optionally, executing a user prompting operation:
if a button is popped up, the user is enabled to confirm whether to switch to the main screen again, and if the user selects yes, the user switches to the main screen; if a window pops up, the user can execute switching to the main screen after clicking to close; if a window pops up, the switching to the main screen is executed after a time delay. A pop-up window may be an image, an animation, a text, a sound, and combinations thereof.
Fig. 2 is a schematic diagram of an apparatus for switching to a home screen based on an iOS system according to an embodiment of the present invention.
Referring to fig. 2, the apparatus includes a first judging unit 10, a first calling unit 20, a second judging unit 30, and a second calling unit 40.
The first judging unit 10 is configured to judge whether a user clicks a button B _ Home on the application extension Widget _ Home in the application App _ Home.
The first calling unit 20 is configured To, when the user clicks the button B _ Home, call, by the application extension Widget _ Home, the self-container application APP _ Home or the application program To _ Home.
The second determining unit 30 is configured To determine whether the calling request information is the request information for switching To the Home screen by using the APP _ Home of the self container or the To _ Home of the application program.
A second calling unit 40, configured To, in a case that the calling request information is the request information for switching To the Home screen, call, by the self-container application APP _ Home or the application To _ Home, an application programming interface API of an exit program of the iOS system.
In this embodiment, the first determining unit includes:
and judging whether the user touches the button B _ Home or not.
In this embodiment, the second judging unit includes:
the self container application APP _ Home or the application program To _ Home judges whether the parameters in the calling request information are consistent with the parameters in the request information for switching To the main screen; or,
judging whether the calling request information is the request information for switching To the main screen or not through the setting information of the application program To _ Home; or,
confirming, by the user, whether to switch the invocation request information to the request information of the home screen.
In this embodiment, the second invoking unit includes:
if the calling request information is the request information for switching To the main screen, the application program To _ Home directly calls the API of the exit program of the iOS system; or,
and if the calling request information is the request information for switching To the main screen, the application program To _ Home calls an application program App _ O, and the application program App _ O calls an API of an exit program of the iOS system.
In this embodiment, before the second invoking unit, a switching confirmation unit (not shown) is further included:
judging whether the current setting allows the request information for switching to the main screen; or,
judging whether other operations need to be executed or not; or,
request information for making the user confirm again whether to switch to the main screen according to the popped up button; or,
and closing the pop-up window or switching to the request information of the main screen after delaying.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (8)
1. A method for switching to a home screen based on an iOS system, the method comprising:
step S1, judging whether the user clicks a button B _ Home on the application extension Widget _ Home in the application App _ Home;
step S2, if the user clicks the button B _ Home, the application extension Widget _ Home calls the self container application APP _ Home or the application program To _ Home;
step S3, the self container application APP _ Home or the application To _ Home determines whether the call request information is the request information for switching To the Home screen;
step S4, if the calling request information is the request information for switching To the Home screen, the APP _ Home of the self container application or the To _ Home of the application calls an API of an exit program of the iOS system;
the step S3 includes:
the self container application APP _ Home or the application program To _ Home judges whether the parameters in the calling request information are consistent with the parameters in the request information for switching To the main screen;
or,
judging whether the calling request information is the request information for switching To the main screen or not through the setting information of the application program To _ Home;
or,
confirming, by the user, whether to switch the invocation request information to the request information of the home screen.
2. The method for switching to a home screen based on the iOS system as claimed in claim 1, wherein the step S1 includes:
and judging whether the user touches the button B _ Home or not.
3. The method for switching to a home screen based on the iOS system as claimed in claim 1, wherein the step S4 includes:
if the calling request information is the request information for switching To the main screen, the application program To _ Home directly calls the API of the exit program of the iOS system;
or,
and if the calling request information is the request information for switching To the main screen, the application program To _ Home calls an application program App _ O, and the application program App _ O calls an API of an exit program of the iOS system.
4. The method for switching to a home screen based on the iOS system as claimed in claim 1, further comprising, before the step S4:
judging whether the current setting allows the request information for switching to the main screen;
or,
judging whether other operations need to be executed or not;
or,
request information for making the user confirm again whether to switch to the main screen according to the popped up button;
or,
and closing the pop-up window or switching to the request information of the main screen after delaying.
5. An iOS system-based apparatus for switching to a home screen, comprising:
the first judgment unit is used for judging whether a user clicks a button B _ Home on the application extension Widget _ Home in the application App _ Home;
the first calling unit is used for calling an application APP _ Home or an application program To _ Home of a self container by the application extension Widget _ Home under the condition that the user clicks the button B _ Home;
a second judging unit, configured To judge, by the APP _ Home of the self container or by the To _ Home of the application program, whether the call request information is request information for switching To a Home screen;
a second calling unit, configured To, when the calling request information is the request information for switching To the Home screen, call, by the self-container application APP _ Home or the application To _ Home, an application programming interface API of an exit program of the iOS system;
the second determination unit includes:
the self container application APP _ Home or the application program To _ Home judges whether the parameters in the calling request information are consistent with the parameters in the request information for switching To the main screen;
or,
judging whether the calling request information is the request information for switching To the main screen or not through the setting information of the application program To _ Home;
or,
confirming, by the user, whether to switch the invocation request information to the request information of the home screen.
6. The iOS system-based apparatus for switching to a home screen according to claim 5, wherein the first judging unit includes:
and judging whether the user touches the button B _ Home or not.
7. The iOS system-based apparatus for switching to a home screen according to claim 5, wherein the second calling unit comprises:
if the calling request information is the request information for switching To the main screen, the application program To _ Home directly calls the API of the exit program of the iOS system;
or,
and if the calling request information is the request information for switching To the main screen, the application program To _ Home calls an application program App _ O, and the application program App _ O calls an API of an exit program of the iOS system.
8. The iOS system-based apparatus for switching to a home screen according to claim 5, further comprising a switch confirming unit before the second calling unit:
judging whether the current setting allows the request information for switching to the main screen; or,
judging whether other operations need to be executed or not; or,
request information for making the user confirm again whether to switch to the main screen according to the popped up button; or,
and closing the pop-up window or switching to the request information of the main screen after delaying.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610125025.3A CN105808103B (en) | 2016-03-04 | 2016-03-04 | A kind of method and apparatus for being switched to main screen based on iOS system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610125025.3A CN105808103B (en) | 2016-03-04 | 2016-03-04 | A kind of method and apparatus for being switched to main screen based on iOS system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105808103A CN105808103A (en) | 2016-07-27 |
CN105808103B true CN105808103B (en) | 2018-09-18 |
Family
ID=56466762
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610125025.3A Expired - Fee Related CN105808103B (en) | 2016-03-04 | 2016-03-04 | A kind of method and apparatus for being switched to main screen based on iOS system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105808103B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107818107B (en) * | 2016-09-12 | 2020-06-02 | 平安科技(深圳)有限公司 | Method and device for controlling page jump |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103677587A (en) * | 2013-12-11 | 2014-03-26 | Tcl集团股份有限公司 | Method and system for rapidly switching main interfaces in Android system |
CN103914321A (en) * | 2013-01-05 | 2014-07-09 | 腾讯科技(深圳)有限公司 | Method for invoking message processing capacity of system and mobile terminal |
CN104765524A (en) * | 2015-03-05 | 2015-07-08 | 广东欧珀移动通信有限公司 | Application switching method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070094596A1 (en) * | 2005-10-25 | 2007-04-26 | Per Nielsen | Glance modules |
-
2016
- 2016-03-04 CN CN201610125025.3A patent/CN105808103B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103914321A (en) * | 2013-01-05 | 2014-07-09 | 腾讯科技(深圳)有限公司 | Method for invoking message processing capacity of system and mobile terminal |
CN103677587A (en) * | 2013-12-11 | 2014-03-26 | Tcl集团股份有限公司 | Method and system for rapidly switching main interfaces in Android system |
CN104765524A (en) * | 2015-03-05 | 2015-07-08 | 广东欧珀移动通信有限公司 | Application switching method and device |
Non-Patent Citations (1)
Title |
---|
drag to back_home——iOS快速返回首页的手势交互;龙爪槐守望者;《简书》;20151215;1-5 * |
Also Published As
Publication number | Publication date |
---|---|
CN105808103A (en) | 2016-07-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102541455B (en) | Method and device for rapidly switching operations | |
US11573688B2 (en) | Method, apparatus, and terminal for processing notification information | |
KR101991305B1 (en) | Application program control method and related apparatus | |
CN105573748B (en) | Shortcut key customization method and intelligent terminal | |
CN108008888B (en) | Method and device for rapidly switching application program and interface thereof | |
CN105389173B (en) | Interface switching display method and device based on long connection task | |
CN106201409B (en) | Processing method and system for application program operation interface | |
CN102902580B (en) | A kind of program callback method and device | |
CN101316402A (en) | Method for managing task on mobile phone | |
CN105022548A (en) | User interface display method and terminal | |
CN105630497A (en) | Switching method and switching device of application program | |
US20230269418A1 (en) | Video display method, apparatus and storage medium | |
CN105474156B (en) | Display processing method and terminal of transient interface | |
CN104765802B (en) | Webpage methods of exhibiting and device | |
WO2023005828A1 (en) | Message display method and apparatus, and electronic device | |
WO2020015462A1 (en) | Timing transmission method, electronic device and storage medium | |
EP2829952A1 (en) | Touch screen terminal operating method and device | |
CN109582187B (en) | File sending method and device, computer equipment and storage medium | |
EP3206115A1 (en) | Method and apparatus for list item operations | |
US10318136B2 (en) | Operation processing method and device | |
CN105808103B (en) | A kind of method and apparatus for being switched to main screen based on iOS system | |
US20120231854A1 (en) | Mobile terminal device and function setting method for mobile terminal device | |
CN106973444B (en) | Method for dialing telephone number and mobile terminal | |
WO2016165166A1 (en) | Multi-system system switching method and apparatus | |
WO2019201284A1 (en) | Operation interface display method and device and terminal apparatus |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180918 Termination date: 20190304 |
|
CF01 | Termination of patent right due to non-payment of annual fee |