CN106959847B - Login method and device for application program - Google Patents
Login method and device for application program Download PDFInfo
- Publication number
- CN106959847B CN106959847B CN201710091102.2A CN201710091102A CN106959847B CN 106959847 B CN106959847 B CN 106959847B CN 201710091102 A CN201710091102 A CN 201710091102A CN 106959847 B CN106959847 B CN 106959847B
- Authority
- CN
- China
- Prior art keywords
- login
- condition
- triggered
- application program
- popping
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Abstract
The invention provides a login method and a device of an application program, wherein the method comprises the following steps: setting a certain number of login conditions based on the operation scene of a user; creating login frames corresponding to all login conditions; and when the login condition is triggered, popping up a login frame corresponding to the login condition. The method and the device solve the problems that the user experience is influenced by randomly popping up the login frames in different occasions, and simultaneously solve the problem that the user cannot effectively distinguish different operation scenes due to the fact that the login frames are the same by creating the login frames corresponding to all login conditions.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a login method and device for an application program.
Background
With the development of the internet, more and more scenes exist for users to use apps, no matter the apps are e-commerce apps, social apps, video apps or game apps, the users are expected to log in, the log-in apps can record user data and track user behaviors, and some apps force the users to log in, such as QQ or Wechat.
For a streaming media application program, particularly a streaming media application program for playing a main broadcast live broadcast, the lowest use requirement of a user is to watch the main broadcast live broadcast, and the user does not need to log in the application program, the user only needs to log in the application program when the user needs to interact with the main broadcast, for example, the user pays attention to the main broadcast, presents to the main broadcast or sends a barrage in a main broadcast room, if the application program does not consider the requirement of the user, a login box is randomly popped up in any occasion, part of apps even force the user to log in, the user experience is seriously influenced, and the loyalty and the love of the user to the application program are inevitably reduced due to poor experience.
Therefore, when and what login box pops up, a reasonable solution is urgently needed to be found.
Disclosure of Invention
The present invention provides a method and apparatus for logging on an application that overcomes, or at least partially solves, the above mentioned problems.
According to an aspect of the present invention, there is provided a login method of an application program, including:
s1, setting a certain number of login conditions based on the operation scene of the user;
s2, creating login frames corresponding to the login conditions; and
s3, when the login condition is triggered, a login box corresponding to the login condition is popped up.
According to another aspect of the present invention, there is provided a login apparatus for an application program, including:
the login condition module is used for setting login conditions based on the operation scene of the user;
a login frame creating module for creating login frames corresponding to the login conditions; and
and the login box popping module is used for popping up a login box corresponding to the login condition when the login condition is triggered.
According to the login method and device for the application program, login conditions are set based on operation scenes of a user, the problem that random popup of login frames in different occasions influences user experience is solved, and meanwhile, the problem that the user cannot effectively distinguish different operation scenes or even aesthetic fatigue due to the fact that all login frames are different is solved by creating the login frames corresponding to the login conditions.
Drawings
Fig. 1 is a flowchart illustrating a login method of an application according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
In order to solve the problem that the application program in the prior art does not consider the requirements of the user and randomly pops up a login box on occasions to reduce the loyalty and the love of the user to the application program, the invention provides a login method of the application program.
Fig. 1 shows a flowchart of a login method of an application program according to an embodiment of the present invention, and as can be seen, the method includes:
s1, setting a certain number of login conditions based on the operation scene of the user;
s2, creating login frames corresponding to the login conditions; and
s3, when the login condition is triggered, a login box corresponding to the login condition is popped up.
According to the method and the device, the login conditions are set based on the operation scenes of the user, the problem that the user experience is influenced by randomly popping up the login boxes in the case of no separation is solved, and meanwhile, the problem that the user cannot effectively distinguish different operation scenes and even is in aesthetic fatigue due to the fact that all the login boxes are the same is solved by creating the login boxes corresponding to the login conditions.
In one embodiment, the application is a streaming media application for playing a live broadcast.
Streaming media, also called streaming media, is a media that is broadcast while being transmitted, and is a kind of multimedia. Broadcast-while-propagation refers to the "same time" that a media provider transmits media over a network, while a user is constantly receiving and viewing or listening to the transmitted media. "streaming" of "streaming" media refers to the manner in which such media is transported (streamed), and not to the media itself.
Live broadcast is a current popular entertainment form, the anchor can carry out live broadcast in the live broadcast room at any time by applying for the live broadcast room from the live broadcast platform, and a user can watch the live broadcast of the anchor in the live broadcast room when the anchor carries out the live broadcast.
In one embodiment, the login condition in step S1 includes: when the user interacts with the anchor or logs in to the personal center of the application, a login box pops up.
In one embodiment, the user interacting with the anchor includes: the user pays attention to the anchor's live room, broadcasts a gift to the anchor, sends a barrage in the anchor room, and anchors the live reminder.
After the user pays attention to the live broadcast room of the main broadcast, the information of the live broadcast room is included in the personal information of the user, and the user can quickly find the live broadcast room through an attention bar in the personal information when opening the application program next time.
The act of sending the principal character value to the anchor is to say, the gift is not limited to charging or free.
And the anchor live broadcast prompt is used for prompting the anchor concerned by the user to live broadcast.
In the invention, the operation scenes of the user are different, and the login frames are also different, so that the familiarity of the user to different operation scenes can be enhanced.
Due to the use habit, most screens of smart mobile devices (such as mobile phones or tablet computers) are rectangular, and in a conventional use situation (such as browsing a webpage, using chat software or listening to a song), the display interface of the smart mobile device is in an upright screen state, but in a video browsing or game playing situation, the display interface of the smart mobile device is in a landscape screen state. Because the scales of the popup windows or the icons in the vertical screen state and the horizontal screen state of the display interface are different, the popup windows or the icons of two scales are required to be preset in the prior art, which is very troublesome.
In one embodiment, the step S3 further includes:
and when the login condition is triggered and the current display interface is in a vertical screen state, popping up a login frame corresponding to the login condition.
In one embodiment, the step S3 further includes:
when the login condition is triggered and the current display interface is in the horizontal screen state, the current display interface is adjusted to be in the vertical screen state; and
and popping up a login box corresponding to the login condition.
In one embodiment, the step S3 further includes:
and when the login condition is triggered, confirming the layer on the current display interface. The graphic layers, which are commonly referred to as films containing elements such as text or graphics, are stacked one upon the other in order and combined to form the final effect of the page. The layers can precisely locate elements on the page. Texts, pictures, tables and plug-ins can be added into the layers, and the layers can be nested in the layers.
And creating a new layer for displaying the login frame, placing the new layer on the top layers of all the current layers, and when the layers are non-transparent, covering the layer on the next layer by the layer on the previous layer, namely, directly observing the layer on the top layer by a user.
And popping up the login frame corresponding to the login condition on the new layer.
By displaying the login frame as the uppermost layer, the user can be reminded of login operation with a high degree of focus, and the display efficiency is improved.
In one embodiment, when the screen is a vertical screen, directly calling (void) showLoginWithType (int) type completion (void ^) (BOOL)) completion function, wherein type represents the type of a pop-up input box, different type values represent different types of login boxes, completion is the callback of a function and represents the callback code block of a function, completion is composed of a plurality of executed statements, and completion is type void (^ UserManagerLoginAlBlock) (BOOL isSucceed, BOOL iscel, NSString message); a statement.
A callback function is a function called by a function pointer. If you pass a pointer (address) to a function as a parameter to another function, we say that this is a callback function when this pointer is used to call the function that it points to. The callback function is not directly called by the implementer of the function, but is called by another party when a specific event or condition occurs, for responding to the event or condition.
In one embodiment, type ═ 0 represents a login box that pops up in normal operation, such as a fish ball, a pop-up screen, a fish-catching ball (a fish ball, i.e., a point rewarded to the user by the live platform), and the like;
type 1 represents a login box popped up when a user clicks a focus room;
type 2 represents a login box popped up before the operation of the play alert.
In one embodiment, the programming process of the- (void) showLoginWithType (int) type completion (void ^) (BOOL)) completion function is as follows
1) Using (AppDelegate) [ [ application shared application ] delete ]; function commands, get the proxy of the application, which is an object in the iOS to implement some functions.
2) Using uiview controller topview controller ═ del. Function command, get rootViewController on the window of the agent
3) Using topViewController ═ topViewController tvc _ topViewController; and obtaining the controller at the topmost layer, wherein a tvc _ topViewController function is used for obtaining the tvc _ topViewController controller.
Considering that there are other frames or floating layers when the frame is shot, the controller at the top of the rootViewController in the window is traversed, the layer is added to the controller at the top, and if the presentviewcontroller exists, the frame is loaded on the controller at the presentviewcontroller, so as to ensure that the layer is at the top level.
In one embodiment, the tvc _ topViewController function includes:
obtaining a current controller object UIViewController topViewController self using the command;
function while (topview controller. presentedViewController) while checks whether there is a presentedViewController;
if a presentedViewController controller exists, this presentedViewController controller is the topmost controller.
4) After the top-level controller is obtained, the top-level controller can be used as a parameter to create a login box, the function for creating the login box is self, loglnalertview [ [ DYLoginAlertView alloc ] initWithVC: viewController complete: (BOOL issucess, BOOL issancel), and the writing process of the function is
4.1) - (instancetype) initWithVC (UIViewController) < vc > < void ^ (BOOL issucess) completionBlock, which is a callback function containing completionBlock, which is something that needs to be done after the function call is completed
4.2) use the statement self ═ YES; custom construction method for calling father class
4.3) various controls for adding interface behind, such as UIButton, UILable, UIView
4.4) finally, executing the statement return self according to the characteristics of the custom construction method of the apple language
4.5) if the login box disappears, use the command self Weak. Clearing the login box to set the login box as nil
The step 4) has the following beneficial effects:
defining a callback by using block, and popping up a login box only by externally transmitting a parameter and the callback;
the written function is a self-defined construction method, and can call the self-defined construction method of the parent class, so that some initialization methods executed by the parent class can be inherited, and the code does not need to be written again;
the advantage of adding the frame on the topmost controller according to the topmost controller is that only the (instancetype) initWithVC (UIViewController) vc (void ^) function of step 4) needs to be called to construct a frame on any interface, which greatly facilitates the construction of the frame.
In one embodiment, the present invention further provides a login device for an application program, including:
the login condition module is used for setting login conditions based on the operation scene of the user;
a login frame creating module for creating login frames corresponding to the login conditions; and
and the login box popping module is used for popping up a login box corresponding to the login condition when the login condition is triggered.
In one embodiment, the login condition includes: when the user interacts with the anchor or logs in to the personal center of the application, a login box pops up.
In an embodiment, the login box popup module is further configured to confirm that the current display interface is in a vertical screen state when the login condition is triggered, and popup a login box corresponding to the login condition.
In an embodiment, the pop-up login box module is further configured to, when a login condition is triggered, determine the number and the order of the current layer;
creating a new layer for displaying a login frame, and placing the new layer on the top layer of the current layer; and
and popping up the login frame corresponding to the login condition on the new layer.
In one embodiment, the present invention discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the methods provided by the above-described method embodiments, for example, comprising:
s1, setting a certain number of login conditions based on the operation scene of the user;
s2, creating login frames corresponding to the login conditions; and
s3, when the login condition is triggered, a login box corresponding to the login condition is popped up.
In one embodiment, the present invention discloses a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform a method provided by the above method embodiments, for example, comprising:
s1, setting a certain number of login conditions based on the operation scene of the user;
s2, creating login frames corresponding to the login conditions; and
s3, when the login condition is triggered, a login box corresponding to the login condition is popped up.
Finally, the method of the present application is only a preferred embodiment and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (8)
1. A login method for an application program, comprising:
s1, setting a certain number of login conditions based on the operation scene of the user; the login conditions include: the user interacts with the anchor or logs in a personal center of the application program;
s2, creating login frames corresponding to the login conditions; and
s3, when the login condition is triggered, popping up a login frame corresponding to the login condition;
when the login condition is triggered, popping up a login box corresponding to the login condition, and specifically comprising:
and when the login condition is triggered, calling a callback function, and selecting the type of the login frame corresponding to the triggered login condition to pop up.
2. A login method for an application program according to claim 1, wherein the application program is a streaming application program for playing a live program.
3. The login method of the application program according to claim 2, wherein the step S3 further comprises:
and when the login condition is triggered and the current display interface is in a vertical screen state, popping up a login frame corresponding to the login condition.
4. The login method of the application program according to claim 2, wherein the step S3 further comprises:
when the login condition is triggered and the current display interface is in a horizontal screen state;
adjusting the current display interface to be in a vertical screen state; and
and popping up a login box corresponding to the login condition.
5. The login method of the application program according to claim 2, wherein the step S3 further comprises:
when a login condition is triggered, checking the number and the sequence of the current layers;
creating a new layer for displaying a login frame, and placing the new layer on the top layer of the current layer; and
and popping up the login frame corresponding to the login condition on the new layer.
6. An apparatus for logging in an application program, comprising:
the login condition module is used for setting login conditions based on the operation scene of the user; the login conditions include: the user interacts with the anchor or logs in a personal center of the application program; a login frame creating module for creating login frames corresponding to the login conditions; and
the login box popping module is used for popping a login box corresponding to the login condition when the login condition is triggered;
when the login condition is triggered, popping up a login box corresponding to the login condition, and specifically comprising:
and when the login condition is triggered, calling a callback function, and selecting the type of the login frame corresponding to the triggered login condition to pop up.
7. The login apparatus of claim 6, wherein the pop-up login box module is further configured to pop-up a login box corresponding to the login condition when the login condition is triggered and the current display interface is in a portrait state.
8. The login apparatus of claim 6, wherein the pop-up login box module is further configured to check the number and the sequence of the current layers when a login condition is triggered;
creating a new layer for displaying a login frame, and placing the new layer on the top layer of the current layer; and
and popping up the login frame corresponding to the login condition on the new layer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710091102.2A CN106959847B (en) | 2017-02-20 | 2017-02-20 | Login method and device for application program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710091102.2A CN106959847B (en) | 2017-02-20 | 2017-02-20 | Login method and device for application program |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106959847A CN106959847A (en) | 2017-07-18 |
CN106959847B true CN106959847B (en) | 2021-04-27 |
Family
ID=59481667
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710091102.2A Active CN106959847B (en) | 2017-02-20 | 2017-02-20 | Login method and device for application program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106959847B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019232674A1 (en) * | 2018-06-04 | 2019-12-12 | Weng Shaoming | Community media live-streaming information advertisement method |
CN114647412A (en) * | 2020-12-18 | 2022-06-21 | 华为技术有限公司 | Content display method and terminal equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1842003A (en) * | 2005-03-30 | 2006-10-04 | 广州市领华科技有限公司 | Method for realizing instant communication with a plurality of linkmen in single conversational window |
CN101188625A (en) * | 2007-12-26 | 2008-05-28 | 腾讯科技(深圳)有限公司 | A method and system for realizing information content subscription |
CN103176800A (en) * | 2013-03-06 | 2013-06-26 | 北京百纳威尔科技有限公司 | Application program login method and device |
CN104954383A (en) * | 2015-06-24 | 2015-09-30 | 深圳市兰丁科技有限公司 | Application program login method and system |
CN105491458A (en) * | 2015-11-27 | 2016-04-13 | 武汉斗鱼网络科技有限公司 | Optimization method for speaking time of barrage in live website |
CN105516778A (en) * | 2014-09-24 | 2016-04-20 | 冠捷投资有限公司 | Desktop user interface display method for intelligent television |
CN105760045A (en) * | 2016-01-29 | 2016-07-13 | 宇龙计算机通信科技(深圳)有限公司 | Application program login method, application program login device and terminal |
CN105872604A (en) * | 2016-06-15 | 2016-08-17 | 武汉斗鱼网络科技有限公司 | Live broadcast video stream pushing method based on different user states and live broadcast video stream pushing system based on different user states |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101242377B (en) * | 2008-03-18 | 2011-05-11 | 腾讯科技(深圳)有限公司 | Method and user terminal for prompting user prompt message |
WO2015094984A1 (en) * | 2013-12-16 | 2015-06-25 | Avinash Singh | System and process for controlling a portable device |
JP6335507B2 (en) * | 2013-12-25 | 2018-05-30 | キヤノン株式会社 | Image forming apparatus, image forming apparatus control method, and program |
-
2017
- 2017-02-20 CN CN201710091102.2A patent/CN106959847B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1842003A (en) * | 2005-03-30 | 2006-10-04 | 广州市领华科技有限公司 | Method for realizing instant communication with a plurality of linkmen in single conversational window |
CN101188625A (en) * | 2007-12-26 | 2008-05-28 | 腾讯科技(深圳)有限公司 | A method and system for realizing information content subscription |
CN103176800A (en) * | 2013-03-06 | 2013-06-26 | 北京百纳威尔科技有限公司 | Application program login method and device |
CN105516778A (en) * | 2014-09-24 | 2016-04-20 | 冠捷投资有限公司 | Desktop user interface display method for intelligent television |
CN104954383A (en) * | 2015-06-24 | 2015-09-30 | 深圳市兰丁科技有限公司 | Application program login method and system |
CN105491458A (en) * | 2015-11-27 | 2016-04-13 | 武汉斗鱼网络科技有限公司 | Optimization method for speaking time of barrage in live website |
CN105760045A (en) * | 2016-01-29 | 2016-07-13 | 宇龙计算机通信科技(深圳)有限公司 | Application program login method, application program login device and terminal |
CN105872604A (en) * | 2016-06-15 | 2016-08-17 | 武汉斗鱼网络科技有限公司 | Live broadcast video stream pushing method based on different user states and live broadcast video stream pushing system based on different user states |
Also Published As
Publication number | Publication date |
---|---|
CN106959847A (en) | 2017-07-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11218739B2 (en) | Live video broadcast method, live broadcast device and storage medium | |
US10607382B2 (en) | Adapting content to augumented reality virtual objects | |
CN107341018B (en) | Method and device for continuously displaying view after page switching | |
JP6249419B2 (en) | Image identification and organization according to layout without user intervention | |
US20150082239A1 (en) | Remote Virtualization of Mobile Apps with Transformed Ad Target Preview | |
JP5813102B2 (en) | Rendering incompatible content within the user interface | |
CN104995596A (en) | Managing audio at the tab level for user notification and control | |
KR20190132361A (en) | Interactive attribute based display method and device | |
US20170324998A1 (en) | Method for playing video, client, and computer storage medium | |
KR20140082790A (en) | Speech recognition for context switching | |
WO2019007327A1 (en) | Video playback method and apparatus, computing device, and storage medium | |
US10222927B2 (en) | Screen magnification with off-screen indication | |
US20170168668A1 (en) | Method and electronic device for displaying menu on apparatus | |
WO2017193530A1 (en) | Image generation method, device, and terminal | |
CN107479892B (en) | Popup frame view creating method and device and electronic equipment | |
CN104520816A (en) | Cross-extension messaging using browser as intermediary | |
US20170168660A1 (en) | Voice bullet screen generation method and electronic device | |
US20170195710A1 (en) | Method and electronic device for preview play | |
CN112584224A (en) | Information display and processing method, device, equipment and medium | |
CN106959847B (en) | Login method and device for application program | |
WO2015078260A1 (en) | Method and device for playing video content | |
US20170169599A1 (en) | Methods and electronic devices for displaying picture | |
WO2018190884A1 (en) | Enabling third parties to add effects to an application | |
CN111125480A (en) | Background music playing method and equipment, client device and electronic equipment | |
CN108664498B (en) | Webpage content display method and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |