We have introduced the basic knowledge of Core Animation and the simple use of CALayer. In the end, there are still some Animation effects to be played. Here we will list several Animation effects. For more information, see this article.1. Move the image to the bottom right corner to become transparent.
Use CAAnimationGroup to overlay the animation effect, which is described in "Move the image to the lower right corner and make it transparent:
,
The above three figures are the three States of th
database, five connection parameters are required, namely server, instance, user, password, and version. Server refers to the Host Name of the server, instance refers to the service name or port number, user is the username of the database, password database corresponds to the password of the user, version refers to a version in the enterprise Geodatabase multi-version mechanism, the default version is "SDE. default ". If the relational database is SQL Server, the database parameter is required
= UIGraphicsGetCurrentContext (); // 2. splicing path UIBezierPath * path = [UIBezierPath bezierPath]; // set the starting point [path moveToPoint: CGPointMake (10,125)]; // description curve [path addQuadCurveToPoint: CGPointMake (240,125) controlPoint: CGPointMake (125,240)]; [path addLineToPoint: CGPointMake (10,125)]; // 3. add the path to the context CGContextAddPath (ctx, path. CGPath); // set the drawing status before rendering. // set the col
, 89.5, screen_width, 0.5)]; lineView. backgroundColor = separaterColor; [cell addSubview: lineView];} cell. delegate = self; [cell setImgurlArray: _ albumImgurlArray]; return cell;
:
2: The Red view and the Blue view are added to the scrollView. Drag up. The red view remains at the top of the screen, and the other continues to scroll. drag down and the red view follows.
@ Interface ViewController ()
3: Use the besell curve to draw a burst effect
# Define SCREEN_WIDTH ([UIScreen mainScreen].
creatArcPath() { let path = UIBezierPath(arcCenter: CGPoint(x: 270, y: 120), radius: 50, startAngle: 0, endAngle: CGFloat(M_PI), clockwise: true) path.lineWidth = 2 path.stroke() }
Explanation: The parameters respectively specify the center, radius, start angle, end angle, and clockwise direction of the arc.
Secondary besell Curve
This is a little more complicated than a besell curve. The characteristic of the secondary besell curve is that there is a control point.
Func
do I set the width, color, and style of the line?Setting these styles is what we call the state of modifying the graphics context.Set line width: Cgcontextsetlinewidth (CTX, 20);To set the connection style for a segment: Cgcontextsetlinejoin (CTX, Kcglinejoinround);Add vertex style: Cgcontextsetlinecap (CTX, Kcglinecapround);Set the color of the line: [[Uicolor Redcolor] setstroke];5. How do I draw a curve?A special control point is required to draw a curve to determine the degree of curvature
locatedStartAngle: The angle value at which the arc startsEndangle: Angle value for arc endClockwise: Whether to draw an arc clockwise6, draw two Yuan curve, general and movetopoint with use-(void) Addquadcurvetopoint: (cgpoint) endPoint controlpoint: (cgpoint) ControlPointParameters:EndPoint: The end of the curveControlPoint: Drawing a datum point of a curve7, with three points to draw a curve, general and movetopoint with the use of-(void) Addcurve
The charge number of the battery is 300 times or more for full charge. In the case of incomplete charge, such as the meeting completed, the use of half of the electricity, connected to the external power supply, will automatically recharge, these incomplete charge on the battery life is generally not much impact, but long-term accumulation will also reduce the performance of the battery. It is recommended that the battery be fully used and then recharged.
Now the E-series notebook has been
] setstroke];11, how to draw curves?a special control point is required to draw a curve to determine the degree of curvature of the curve. The drawing curve method is:// set the starting point of a curve first [Path Movetopoint:cgpointmake]; // add to the point to the end of the curve. Also need a controlpoint (control point determines the curve of the method program) [Path Addquadcurvetopoint:cgpointmake (controlpoint:cgpointmake) (10 )];12, how to d
margin + radius width cgpoint leftcenter = Cgpointmake (Spacewidth+radius, Spacewidth+radius);
Right distance to the right center of the center of the left is twice times radius cgpoint rightcenter = Cgpointmake (spacewidth+radius*3, Spacewidth+radius); Left semicircle uibezierpath *heartline = [Uibezierpath bezierpathwitharccenter:leftcenter radius:radius StartAngle:M_PI
endangle:0 Clockwise:yes]; Right semicircle [heartline addArcwithcenter:rightcenter Radius:radius startangle:m_pi en
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.