CN108984237A - A kind of control rendering method, storage medium, equipment and system - Google Patents
A kind of control rendering method, storage medium, equipment and system Download PDFInfo
- Publication number
- CN108984237A CN108984237A CN201710399023.8A CN201710399023A CN108984237A CN 108984237 A CN108984237 A CN 108984237A CN 201710399023 A CN201710399023 A CN 201710399023A CN 108984237 A CN108984237 A CN 108984237A
- Authority
- CN
- China
- Prior art keywords
- control
- gravity
- creation
- animation
- behavior
- 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.)
- Pending
Links
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/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a kind of control rendering method, storage medium, equipment and systems, are related to applicating developing technology field.This method comprises: when receiving the interface in application program the instruction of some specified control being presented, judge whether existing this specifies control in the interface of application program, if it does not exist, first create the animation effect that specified control is the specified control addition gravity collision of creation again, if it exists, then the animation effect of gravity collision is directly added for specified control;Finally, executing the specified control for being added to the animation effect of gravity collision, it is presented on specified control on the interface of current application program according to the animation effect that gravity collides.The present invention makes the presentation of control not only will not be lofty by way of increasing gravity collision animation to control but also can effectively attract user's note that user experience is good, meets the high request of user.
Description
Technical field
The present invention relates to applicating developing technology fields, be specifically a kind of control rendering method, storage medium, equipment and
System.
Background technique
With the fast development of mobile interchange technology, mobile terminal device (such as mobile phone, tablet computer etc.) is increasingly general
And and mobile terminal device provide function it is also more and more.Under normal conditions, user can freely set in mobile terminal
Various APP (Application, application program) is installed as needed for upper, such as user can install on mobile phone
Live streaming application is to watch online live streaming.
In practical application, with the continuous development of application-development technologies, user wants the interfacial effect of application program
Ask also higher and higher, it is more fastidious that effect especially is presented to the control of application program.But the control of existing application program
The high request that effect is unable to satisfy user due to various reasons is presented: or control appearance is excessively unexpected, some meetings are very short
Time in (less than 0.1 second) present in front of the user, a kind of very lofty feeling of user can be given;Control occurs excessively
Flat, especially flat at the very more interface of control presentation some control, will be unable to the attention for causing user well.Always
It, the user experience that effect is presented in existing control is poor, is unable to satisfy the high request of user.Therefore, how optimization is designed
Scheme is presented in control, gives the preferable user experience of user, is those skilled in the art's urgent problem to be solved.
Summary of the invention
The purpose of the invention is to overcome the shortcomings of above-mentioned background technique, a kind of control rendering method is provided, storage is situated between
Matter, equipment and system make the presentation of control not only will not be lofty but also can be effective by way of increasing gravity collision animation to control
Attract user's note that user experience is good, meets the high request of user.
To achieve the above objectives, the technical solution adopted by the present invention is that: provide a kind of control rendering method, this method includes
Following steps:
S1, when receiving the interface in application program the instruction of some specified control being presented, judge the interface of application program
In whether the existing specified control is transferred to step S2 if it does not exist, and if it exists, be transferred to step S3;
S2, specified control is created in the interface of application program and carries out Initialize installation;
S3, the animation effect to specify control addition gravity collision;
S4, execution are added to the specified control of the animation effect of gravity collision, collide specified control according to gravity dynamic
Effect is drawn to be presented on the interface of current application program.
Based on the above technical solution, judge whether existing this is specified in the interface of application program described in step S1
The detailed process of control includes: the father view superView that whether there is the specified control in the interface for judge application program, if
There are the father view superView that this specifies control, then existing specified control in the interface of application program is determined;Otherwise,
Determine that there is no the specified controls in the interface of application program.
Based on the above technical solution, step S3 specifically includes following below scheme:
The starting point coordinate value and end coordinate values for the animation effect that S301, setting gravity collide;
S302, using gravity animation creation function creation gravity animation, and using memory allocation function be the gravity created
Animation storage allocation;
S303, the gravity animation of creation is added on the specified control using gravity animation addition function, and should
The agency of gravity animation is set as active view;
S304, the behavior of function creation gravity is created using gravity behavior, and be the gravity of creation using memory allocation function
Behavior storage allocation;The gravity of the gravity behavior is dimensioned to preset gravity value;
The gravity behavior of creation is added on the gravity animation of creation by S305, usage behavior addition function;
S306, function creation collision behavior is created using collision behavior, and be the collision of creation using memory allocation function
Behavior storage allocation;Setting any object all for the crash mode of collision behavior can collide;
S307, function creation Bezier is created using Bezier;It will be created using Bezier addition function
The Bezier built is added on the collision behavior of creation;
Collision behavior is added on the gravity animation of creation by S308, usage behavior addition function.
The present invention also provides a kind of storage mediums, are stored thereon with computer program, the computer program is by processor
The step of above-mentioned control rendering method is realized when execution.
The present invention also provides a kind of control display devices, including memory, processor and storage are on a memory and in institute
The computer program run on processor is stated, the processor realizes above-mentioned control rendering method when executing the computer program
The step of.
The present invention also provides a kind of controls, and system is presented, which includes control judgment module, control creation module, control
Module is presented in animation adding module, control;
The control judgment module is used for: when receiving the interface in application program the instruction of some specified control being presented,
Judge whether the existing specified control sends control creation to control creation module if it does not exist in the interface of application program
Signal, and if it exists, send control animation to control animation adding module and add signal;
The control creation module is used for: after receiving control creation signal, specified control is created in the interface of application program
Part simultaneously carries out Initialize installation;Control animation, which is sent, to control animation adding module adds signal;
The control animation adding module is used for: after receiving control animation addition signal, being added gravity for specified control and is touched
The animation effect hit;Module is presented to control and sends control presentation signal;
The control is presented module and is used for: after receiving control presentation signal, executing the animation effect for being added to gravity collision
Specified control, be presented on specified control on the interface of current application program according to the animation effect that gravity collides.
Based on the above technical solution, whether the control judgment module judges existing in the interface of application program
The detailed process of the specified control includes: in the interface for judge application program with the presence or absence of father's view of the specified control
SuperView, the father view superView of the specified control, then determine that existing this refers in the interface of application program if it exists
Determine control;Otherwise, it is determined that there is no the specified controls in the interface of application program.
Based on the above technical solution, the control creation module include control creation and Memory Allocation submodule,
Submodule is arranged in control coordinate value;The control creation and Memory Allocation submodule are used for: being referred to using control creation function creation
Determine control, and is the specified control storage allocation of creation using memory allocation function;The control coordinate value setting submodule is used
In: using the specified control that coordinate value initialization function is creation, coordinate value is set.
Based on the above technical solution, if specified control is composite control, the control creation module further includes son
Control adds submodule, submodule is arranged in child control coordinate value;The child control addition submodule is used for: using object initialization
Function adds child control on the specified control of creation;The child control coordinate value setting submodule is used for: using at the beginning of coordinate value
Beginningization function is the child control setting coordinate value of addition.
Based on the above technical solution, the control animation adding module include animation coordinate value setting submodule,
Gravity animation creation submodule, gravity animation add submodule, gravity behavior creates submodule, submodule is added in gravity behavior,
Collision behavior creates submodule, Bezier creation and addition submodule, collision behavior and adds submodule;
The animation coordinate value setting submodule is used for: the starting point coordinate value and terminal for the animation effect that setting gravity collides
Coordinate value;
The gravity animation creation submodule is used for: using gravity animation creation function creation gravity animation, and in use
Deposit the gravity animation storage allocation that partition function is creation;
The gravity animation addition submodule is used for: being added to the gravity animation of creation using gravity animation addition function
On the specified control, and active view is set by the agency of the gravity animation;
The gravity behavior creation submodule is used for: creating the behavior of function creation gravity using gravity behavior, and in use
Deposit the gravity behavior storage allocation that partition function is creation;The gravity of the gravity behavior is dimensioned to preset gravity value;
The gravity behavior addition submodule is used for: usage behavior adds function and the gravity behavior of creation is added to creation
Gravity animation on;
The collision behavior creation submodule is used for: creating function creation collision behavior using collision behavior, and in use
Deposit the collision behavior storage allocation that partition function is creation;Setting any object all for the crash mode of collision behavior can occur
Collision;
The Bezier creation and addition submodule are used for: bent using Bezier creation function creation Bezier
Line;The Bezier of creation is added on the collision behavior of creation using Bezier addition function;
The collision behavior addition submodule is used for: collision behavior is added to the gravity of creation by usage behavior addition function
On animation.
The beneficial effects of the present invention are:
(1) in the present invention, after receiving the instruction that some specified control is presented, judge in the interface of application program whether
The existing specified control then first creates specified control in the interface of application program and carries out Initialize installation if it does not exist,
Again to the animation effect of specified control addition gravity collision, and if it exists, the then animation directly to the addition gravity collision of specified control
Effect;After adding animation effect, the specified control for being added to the animation effect of gravity collision is executed, makes specified control according to gravity
The animation effect of collision is presented on the interface of current application program.By aforesaid operations, the specified control that needs can be allowed to present
First occur from the initial position of display according to the effect of gravity fall, then realizes the collision row in a Bezier path again
For.
Occur with the effect of gravity fall, can enable control have a process will not be unexpected, avoid the prior art
It is middle because control is presented in front of the user in a short period of time, a kind of very lofty feeling of user can be given;Gravity fall effect it
Afterwards, the collision behavior in a Bezier path can be realized, which can cause user's note that effect reason is presented well
Think.In short, the present invention can give the preferable user experience of user compared with the control of the prior art is presented, user is met to control
The high request of part presentation effect.
(2), can be to whether existing specified in the interface of current application program before creating specified control in the present invention
Control is judged, the creation of the repetition to identical control is avoided, so that entire treatment process is more efficient.
(3) in the present invention, the case where for composite control, corresponding usability methods and suitable modules are additionally arranged, so that this
The applicability of invention is higher, use scope is wide.
Detailed description of the invention
Fig. 1 is the flow chart of control rendering method in the embodiment of the present invention;
Fig. 2 is the structural schematic diagram of control display device in the embodiment of the present invention;
Fig. 3 is the structural block diagram that system is presented in control in the embodiment of the present invention;
Fig. 4 is the specific block diagram of control creation module in the embodiment of the present invention;
Fig. 5 is another structural block diagram of control creation module in the embodiment of the present invention;
Fig. 6 is the specific block diagram of control animation adding module in the embodiment of the present invention.
Specific embodiment
With reference to the accompanying drawing and specific embodiment the present invention is described in further detail.
Shown in Figure 1, the embodiment of the present invention provides a kind of control rendering method, method includes the following steps:
Step S1, the judgement of control: when receiving the interface in application program the instruction of some specified control being presented, judgement
Whether the existing specified control is transferred to step S2 if it does not exist in the interface of application program, and if it exists, is transferred to step S3.It is logical
For often, the instruction that some specified control is presented is usually the message of socket (socket) or some interface is called to receive
Message instruction.
In one embodiment, judge whether existing this specifies the tool of control in the interface of application program in step S1
Body process are as follows: judge that this is specified if it exists with the presence or absence of the father view superView of the specified control in the interface of application program
The father view superView of control then determines existing specified control in the interface of application program;The specified control if it does not exist
The father view superView of part then determines that there is no the specified controls in the interface of application program.
Step S2, the creation of control: specified control is created in the interface of application program and carries out Initialize installation.
In one embodiment, step S2 specifically includes following below scheme:
Step S201, control is specified using control creation function creation, and the use of memory allocation function is the specified of creation
Control storage allocation.
It is understood that the control creation function in step S201 is selected according to specified control to be created
, the control creation function used selected by different specified controls can be different, for example, label control can be used in IOS system
Part creates class UILabel, to create a label control.Equally, by taking IOS system as an example, IOS system can be used in step S201
Included memory allocation function alloc, for the specified control storage allocation of creation.
Step S202, coordinate value is set using the specified control that coordinate value initialization function is creation.Or with IOS system
For, the coordinate value initialization function initWithFrame that can be used IOS system included in step S202 is the specified control of creation
Coordinate value is arranged in part.
Further, in practical applications, since specified control may be composite control.So-called composite control, refers to
Necessary displaying element is added on control, these show element also whistle control, therefore this control added with child control
It is referred to alternatively as composite control.Wherein, show that element (child control) can be picture UIImage type, text UILable type
, button UIButton type, it is also possible to input frame UITexField type.If specified control is composite control,
Further include following operation after step S203: adding child control on the specified control of creation using object initialization function;Make
With the child control that coordinate value initialization function is addition, coordinate value is set.Equally by taking IOS system as an example, it can be used in aforesaid operations
The init function realization of IOS system adds child control on the specified control of creation.Further it will be understood that due to addition
Child control be attached to inside the specified control of creation, so add to specified control animation effect when, sub- control
Part can also show same animation effect.
Step S3, the insertion of control animation: to specify control to add the animation effect of gravity collision.
In one embodiment, step S3 specifically includes following below scheme:
Step S301, the starting point coordinate value starRect and end coordinate values for the animation effect that setting gravity collides
endRect。
It step S302, using one gravity animation of gravity animation creation function creation, and the use of memory allocation function is wound
The gravity animation storage allocation built.
Or by taking IOS system as an example, in step S302, when using gravity animation creation function creation gravity animation, it can make
It is realized with the class function UIDynamicAnimator of the creation gravity animation of IOS system offer;It is using memory allocation function
When the gravity animation storage allocation of creation, the memory allocation function alloc of IOS system offer can be used to realize.
Step S303, the gravity animation of creation is added on specified control using gravity animation addition function, and should
The agency of gravity animation is set as active view.
Or by taking IOS system as an example, in step S303, gravity animation is added to using gravity animation addition function specified
When on control, the initWithReferenceView function of IOS system offer can be used to realize.
Step S304, one gravity behavior of function creation is created using gravity behavior, and the use of memory allocation function is wound
The gravity behavior storage allocation built;The gravity of the gravity behavior is dimensioned to preset gravity value.It is understood that should
Preset gravity sizes values can be by developer according to specifically needing to carry out self-setting and adjustment, and artificial controllability is high, clever
Activity is big.
Or by taking IOS system as an example, in step S304, when creating the behavior of function creation gravity using gravity behavior, it can make
It is realized with the class function UIGravityBehavior of the creation gravity behavior of IOS system offer;It is using memory allocation function
When the gravity behavior storage allocation of creation, the memory allocation function alloc of IOS system offer can be used to realize.
Step S305, the gravity behavior of creation is added on the gravity animation of creation by usage behavior addition function.
Or by taking IOS system as an example, in step S305, usage behavior adds function and the gravity behavior of creation is added to wound
When on the gravity animation built, the addBehavior function of IOS system can be used to realize.
Step S306, one collision behavior of function creation is created using collision behavior, and the use of memory allocation function is wound
The collision behavior storage allocation built;Setting any object all for the crash mode of collision behavior can collide.
Or by taking IOS system as an example, in step S306, when creating one collision behavior of function creation using collision behavior,
The class function UICollisionBehavior of the creation collision behavior of IOS system offer can be used to realize.In addition, will collision
It, can be by setting the crash mode of collision behavior to when the crash mode of behavior is set as any object and can all collide
UICollisionBehaviorModeEverything type.
Step S307, one Bezier of function creation is created using Bezier;It is added using Bezier
The Bezier of creation is added on the collision behavior of creation by function.
Or by taking IOS system as an example, in step S307, one Bezier of function creation is created using Bezier
When, the Bezier that IOS system can be used to provide creates function bezierPathWithRoundedRect to realize;It uses
When Bezier is added on collision behavior by Bezier addition function, the Bezier that IOS system can be used to provide is bent
Line adds function addBoundaryWithIdentifier to realize.
Step S308, usage behavior addition function is by current collision behavior (that is, being added with the collision row of Bezier
For) be added on the gravity animation of creation.
Operation through the above steps, so that it may successfully complete and realize Bezier again for the first gravity fall of control addition
Collision behavior animation effect.It is understood that above-mentioned collision behavior path executes knot when actually executing animation effect
The method that a collision behavior can be called to stop when beam, the terminal being arranged in step S301 before then needing to call at this time are sat
Scale value endRect.
Step S4, the presentation of control: executing the specified control for being added to the animation effect of gravity collision, make specified control by
It is presented on the interface of current application program according to the animation effect of gravity collision.
It is understood that specified control is presented on the interface of current application program according to the animation effect that gravity collides
When, specified control can first occur in the initial position of display according to the effect of gravity fall, then realize a collision behavior again
Effect, the execution route of the collision behavior is Bezier path.
Corresponding above-mentioned control rendering method, the embodiment of the present invention also provide a kind of storage medium, are stored thereon with calculating
Machine program, the step of control rendering method in the various embodiments described above can be realized when which is executed by processor.It needs
It is noted that the storage medium includes USB flash disk, mobile hard disk, ROM (Read-Only Memory, read-only memory), RAM
Various Jie that can store program code such as (Random Access Memory, random access memory), magnetic or disk
Matter.
In addition, shown in Figure 2, corresponding above-mentioned control rendering method, the embodiment of the present invention also provides a kind of control and is in
Existing equipment including memory, processor and stores the computer program that can be run on a memory and on a processor, the processing
The step of device can realize the control rendering method in the various embodiments described above when executing computer program.
Shown in Figure 3, the embodiment of the present invention also provides a kind of control presentation system, which includes that control judges mould
Module is presented in block, control creation module, control animation adding module, control.
Wherein, control judgment module is used for: when receiving the interface in application program the instruction of some specified control being presented,
Judge whether the existing specified control sends control creation to control creation module if it does not exist in the interface of application program
Signal, and if it exists, send control animation to control animation adding module and add signal.Specifically, the control judgment module
Judge in the interface of application program whether the detailed process of the existing specified control are as follows: judge in the interface of application program whether
There are the father view superView that this specifies control, and the father view superView of the specified control, then determine to apply if it exists
Existing specified control in the interface of program;The father view superView of the specified control if it does not exist, then determine using journey
There is no the specified controls in the interface of sequence.
Control creation module is used for: after receiving control creation signal, specified control is created in the interface of application program simultaneously
Carry out Initialize installation;Control animation, which is sent, to control animation adding module adds signal.
Control animation adding module is used for: after receiving control animation addition signal, to specify control to add gravity collision
Animation effect;Module is presented to control and sends control presentation signal.
Control is presented module and is used for: after receiving control presentation signal, executing the finger for being added to the animation effect of gravity collision
Determine control, is presented on specified control on the interface of current application program according to the animation effect that gravity collides.
Further, shown in Figure 4, control creation module includes that control creation and Memory Allocation submodule, control are sat
Submodule is arranged in scale value.Wherein, control creation and Memory Allocation submodule are used for: using the specified control of control creation function creation
Part, and the use of memory allocation function is the specified control storage allocation created;Control coordinate value setting submodule is used for: using seat
Scale value initialization function is the specified control setting coordinate value of creation.
Further, shown in Figure 5, if specified control is composite control, the control creation module further includes son
Control adds submodule, submodule is arranged in child control coordinate value.Wherein, child control addition submodule is used for: initial using object
Change function and adds child control on the specified control of creation;Child control coordinate value setting submodule is used for: initial using coordinate value
Change the child control setting coordinate value that function is addition.
Still further, shown in Figure 6, control animation adding module includes animation coordinate value setting submodule, gravity
Animation creation submodule, gravity animation addition submodule, gravity behavior creation submodule, gravity behavior addition submodule, collision
Behavior creates submodule, Bezier creation and addition submodule, collision behavior and adds submodule.
Wherein, animation coordinate value setting submodule is used for: the starting point coordinate value for the animation effect that setting gravity collides and end
Point coordinate value;
Gravity animation creation submodule is used for: using one gravity animation of gravity animation creation function creation, and in use
Deposit the gravity animation storage allocation that partition function is creation;
Gravity animation addition submodule is used for: being added to the gravity animation of creation using gravity animation addition function specified
On control, and active view is set by the agency of the gravity animation;
Gravity behavior creation submodule is used for: creating one gravity behavior of function creation using gravity behavior, and in use
Deposit the gravity behavior storage allocation that partition function is creation;The gravity of the gravity behavior is dimensioned to preset gravity value;
Gravity behavior addition submodule is used for: the gravity behavior of creation is added to the weight of creation by usage behavior addition function
On power animation;
Collision behavior creation submodule is used for: creating one collision behavior of function creation using collision behavior, and in use
Deposit the collision behavior storage allocation that partition function is creation;Setting any object all for the crash mode of collision behavior can occur
Collision;
Bezier creation and addition submodule are used for: creating one Bezier song of function creation using Bezier
Line;The Bezier of creation is added on the collision behavior of creation using Bezier addition function;
Collision behavior addition submodule is used for: collision behavior is added to the gravity animation of creation by usage behavior addition function
On.
It should be understood that system provided by the above embodiment realize control presentation when, only with above-mentioned each function mould
The division progress of block can according to need and for example, in practical application by above-mentioned function distribution by different functional modules
It completes, i.e., the internal structure of system is divided into different functional modules, to complete all or part of the functions described above.
The present invention is not limited to the above-described embodiments, for those skilled in the art, is not departing from
Under the premise of the principle of the invention, several improvements and modifications can also be made, these improvements and modifications are also considered as protection of the invention
Within the scope of.
The content being not described in detail in this specification belongs to the prior art well known to professional and technical personnel in the field.
Claims (10)
1. a kind of control rendering method, which is characterized in that method includes the following steps:
S1, when receiving the interface in application program the instruction of some specified control being presented, judge be in the interface of application program
No existing specified control is transferred to step S2 if it does not exist, and if it exists, is transferred to step S3;
S2, specified control is created in the interface of application program and carries out Initialize installation;
S3, the animation effect to specify control addition gravity collision;
S4, execution are added to the specified control of the animation effect of gravity collision, imitate specified control according to the animation that gravity collides
Fruit is presented on the interface of current application program.
2. control rendering method as described in claim 1, which is characterized in that in the interface for judging application program described in step S1
Whether the detailed process of the existing specified control includes: in the interface for judge application program with the presence or absence of the father of the specified control
View superView, the father view superView of the specified control, then determine existing in the interface of application program if it exists
The specified control;Otherwise, it is determined that there is no the specified controls in the interface of application program.
3. control rendering method as described in claim 1, which is characterized in that step S3 specifically includes following below scheme:
The starting point coordinate value and end coordinate values for the animation effect that S301, setting gravity collide;
S302, using gravity animation creation function creation gravity animation, and using memory allocation function be the gravity animation created
Storage allocation;
S303, the gravity animation of creation is added on the specified control using gravity animation addition function, and by the gravity
The agency of animation is set as active view;
S304, the behavior of function creation gravity is created using gravity behavior, and be the gravity behavior of creation using memory allocation function
Storage allocation;The gravity of the gravity behavior is dimensioned to preset gravity value;
The gravity behavior of creation is added on the gravity animation of creation by S305, usage behavior addition function;
S306, function creation collision behavior is created using collision behavior, and be the collision behavior of creation using memory allocation function
Storage allocation;Setting any object all for the crash mode of collision behavior can collide;
S307, function creation Bezier is created using Bezier;Function is added by creation using Bezier
Bezier is added on the collision behavior of creation;
Collision behavior is added on the gravity animation of creation by S308, usage behavior addition function.
4. a kind of storage medium, is stored thereon with computer program, it is characterised in that: the computer program is executed by processor
The step of any one of Shi Shixian the claims 1 to 3 the method.
5. a kind of control display device, including memory, processor and it is stored on the memory and on the processor
The computer program of operation, it is characterised in that: the processor realized when executing the computer program the claims 1 to
The step of any one of 3 the method.
6. system is presented in a kind of control, it is characterised in that: the system includes that control judgment module, control creation module, control are dynamic
Draw adding module, module is presented in control;
The control judgment module is used for: when receiving the interface in application program the instruction of some specified control being presented, judgement
Whether the existing specified control sends control to control creation module and creates signal if it does not exist in the interface of application program,
If it exists, control animation is sent to control animation adding module add signal;
The control creation module is used for: after receiving control creation signal, specified control is created in the interface of application program simultaneously
Carry out Initialize installation;Control animation, which is sent, to control animation adding module adds signal;
The control animation adding module is used for: after receiving control animation addition signal, to specify control to add gravity collision
Animation effect;Module is presented to control and sends control presentation signal;
The control is presented module and is used for: after receiving control presentation signal, executing the finger for being added to the animation effect of gravity collision
Determine control, is presented on specified control on the interface of current application program according to the animation effect that gravity collides.
7. system is presented in control as claimed in claim 6, it is characterised in that: the control judgment module judges application program
Whether the detailed process of the existing specified control includes: in the interface for judge application program with the presence or absence of the specified control in interface
The father view superView of part, if it exists father view superView of the specified control, then in the interface for determining application program
The existing specified control;Otherwise, it is determined that there is no the specified controls in the interface of application program.
8. system is presented in control as claimed in claim 6, it is characterised in that: the control creation module include control creation and
Submodule is arranged in Memory Allocation submodule, control coordinate value;
The control creation and Memory Allocation submodule are used for: being specified control using control creation function creation, and used memory
Partition function is the specified control storage allocation of creation;
The control coordinate value setting submodule is used for: coordinate is arranged using the specified control that coordinate value initialization function is creation
Value.
9. system is presented in control as claimed in claim 8, it is characterised in that: if specified control is composite control, the control
Creation module further includes child control addition submodule, child control coordinate value setting submodule;
The child control addition submodule is used for: adding child control on the specified control of creation using object initialization function;
The child control coordinate value setting submodule is used for: coordinate is arranged using the child control that coordinate value initialization function is addition
Value.
10. system is presented in control as claimed in claim 6, it is characterised in that: the control animation adding module includes animation
Coordinate value setting submodule, gravity animation creation submodule, gravity animation add submodule, gravity behavior creates submodule, again
Lixing is addition submodule, collision behavior creates submodule, Bezier creates and addition submodule, collision behavior addition
Module;
The animation coordinate value setting submodule is used for: the starting point coordinate value and terminal point coordinate for the animation effect that setting gravity collides
Value;
The gravity animation creation submodule is used for: being used gravity animation creation function creation gravity animation, and is used memory point
It is the gravity animation storage allocation of creation with function;
Gravity animation addition submodule is used for: being added to the gravity animation of creation using gravity animation addition function described
On specified control, and active view is set by the agency of the gravity animation;
The gravity behavior creation submodule is used for: being created the behavior of function creation gravity using gravity behavior, and is used memory point
It is the gravity behavior storage allocation of creation with function;The gravity of the gravity behavior is dimensioned to preset gravity value;
The gravity behavior addition submodule is used for: the gravity behavior of creation is added to the weight of creation by usage behavior addition function
On power animation;
The collision behavior creation submodule is used for: being created function creation collision behavior using collision behavior, and is used memory point
It is the collision behavior storage allocation of creation with function;Setting any object all for the crash mode of collision behavior can touch
It hits;
The Bezier creation and addition submodule are used for: creating function creation Bezier using Bezier;
The Bezier of creation is added on the collision behavior of creation using Bezier addition function;
The collision behavior addition submodule is used for: collision behavior is added to the gravity animation of creation by usage behavior addition function
On.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710399023.8A CN108984237A (en) | 2017-05-31 | 2017-05-31 | A kind of control rendering method, storage medium, equipment and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710399023.8A CN108984237A (en) | 2017-05-31 | 2017-05-31 | A kind of control rendering method, storage medium, equipment and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108984237A true CN108984237A (en) | 2018-12-11 |
Family
ID=64501359
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710399023.8A Pending CN108984237A (en) | 2017-05-31 | 2017-05-31 | A kind of control rendering method, storage medium, equipment and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108984237A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112527422A (en) * | 2019-09-17 | 2021-03-19 | 腾讯科技(深圳)有限公司 | View updating method, device, equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101436133A (en) * | 2008-11-20 | 2009-05-20 | 腾讯科技(深圳)有限公司 | Method and device for generating control object library |
CN105224302A (en) * | 2014-06-27 | 2016-01-06 | 北京搜狗科技发展有限公司 | The skin processing method of input method and input method system |
CN105468353A (en) * | 2015-11-06 | 2016-04-06 | 网易(杭州)网络有限公司 | Implementation method and apparatus for interface animation, mobile terminal, and computer terminal |
CN105957126A (en) * | 2016-04-22 | 2016-09-21 | 武汉斗鱼网络科技有限公司 | Animation displaying method and device capable of freely switching themes |
CN106020815A (en) * | 2016-05-17 | 2016-10-12 | Tcl集团股份有限公司 | Expansion method and system of Android platform animation display area |
CN106528163A (en) * | 2016-11-23 | 2017-03-22 | 武汉斗鱼网络科技有限公司 | Page switching method and device |
-
2017
- 2017-05-31 CN CN201710399023.8A patent/CN108984237A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101436133A (en) * | 2008-11-20 | 2009-05-20 | 腾讯科技(深圳)有限公司 | Method and device for generating control object library |
CN105224302A (en) * | 2014-06-27 | 2016-01-06 | 北京搜狗科技发展有限公司 | The skin processing method of input method and input method system |
CN105468353A (en) * | 2015-11-06 | 2016-04-06 | 网易(杭州)网络有限公司 | Implementation method and apparatus for interface animation, mobile terminal, and computer terminal |
CN105957126A (en) * | 2016-04-22 | 2016-09-21 | 武汉斗鱼网络科技有限公司 | Animation displaying method and device capable of freely switching themes |
CN106020815A (en) * | 2016-05-17 | 2016-10-12 | Tcl集团股份有限公司 | Expansion method and system of Android platform animation display area |
CN106528163A (en) * | 2016-11-23 | 2017-03-22 | 武汉斗鱼网络科技有限公司 | Page switching method and device |
Non-Patent Citations (3)
Title |
---|
BRAVE-SAILOR: "Swift - 使用UI Dynamics给UIKit组件添加重力和碰撞行为", 《HTTPS://BLOG.CSDN.NET/WEIXIN_34233679/ARTICLE/DETAILS/85761713》 * |
残夜天晴: "UIView的常见属性和方法"", 《HTTPS://WWW.JIANSHU.COM/P/E9F08B511C93》 * |
球哥-CHG: "iOS开发——高级篇——UIDynamic 物理引擎", 《HTTPS://WWW.CNBLOGS.COM/CHGLOG/P/4837070.HTML》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112527422A (en) * | 2019-09-17 | 2021-03-19 | 腾讯科技(深圳)有限公司 | View updating method, device, equipment and storage medium |
CN112527422B (en) * | 2019-09-17 | 2024-03-22 | 腾讯科技(深圳)有限公司 | View updating method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108628652A (en) | User interface rendering intent, device and terminal | |
CN106020595B (en) | Message reply method and device | |
CN105163373B (en) | A kind of localization method and mobile terminal | |
CN110523085A (en) | Control method, device, terminal and the storage medium of virtual objects | |
CN109324861B (en) | Message display processing method, device, medium and electronic equipment | |
CN105930467A (en) | Information processing method and electronic device | |
CN109840115A (en) | RecyclerView paging loading method and device in a kind of android system | |
CN105991415B (en) | A kind of information push method and mobile terminal | |
CN109710129A (en) | Voice technical ability order bootstrap technique, device, storage medium and electronic equipment | |
CN108534307B (en) | Equipment, message processing method thereof and computer readable storage medium | |
CN109509242B (en) | Virtual object facial expression generation method and device, storage medium and electronic equipment | |
WO2013173949A1 (en) | Method and device for loading and unloading object hierarchically in three-dimensional virtual reality scene | |
CN103324478A (en) | Mobile terminal and application program management method thereof | |
CN102447689B (en) | Information updating prompt method and network client side | |
CN111135579A (en) | Game software interaction method and device, terminal equipment and storage medium | |
CN112911052A (en) | Information sharing method and device | |
CN110290058A (en) | A kind of method and apparatus that conversation message being presented in the application | |
CN108984237A (en) | A kind of control rendering method, storage medium, equipment and system | |
CN108279956B (en) | Progress indicating method, progress indicating device, storage medium and electronic equipment | |
CN109254781A (en) | It is a kind of for installing the method and apparatus of application on a user device | |
CN111813407B (en) | Game development method, game running device and electronic equipment | |
CN105843596A (en) | Application reminding method and device | |
CN110162350B (en) | Notification bar information display method, notification bar information display device, server and storage medium | |
CN109756350A (en) | A kind of method and apparatus of the PUSH message in group session | |
CN113134234B (en) | Information display method, device, terminal and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181211 |
|
RJ01 | Rejection of invention patent application after publication |