Objective:
With the rapid development of society, the financial industry has also developed rapidly. The security requirements for apps or other software developed in the financial industry are high. To this end, developers in order to improve the security of the app Add Lock screen interface, for the user's security, greatly increase the reliability.
First: The structure of the control
Controls are composed of navigation, origin, and status hints.
1. Navigation is System navigation;
2. The origin can have a lot of creation methods (such as: Uibutton/uiview/uiimageview, etc.), this control selects the button.
3. The status hint is Uilabel and the underlying animation is added.
The second: The knowledge points that the control involves.
1. Determine if a point is inside an area, using the function Cgrectcontainspoint. (here, leave a question, do the experiment yourself, if the area is cut, then use the function, take the point of the cut area, is it inside the area?) )。
2. How to skillfully give a parent class the same subclass, add tags, and zone the numerator class.
3. Write about some of the methods of UIView. For example-(void) Touchesbegan: (Nsset<uitouch *> *) touches withevent: (Uievent *) event,-(void) touchesmoved: (nsset< Uitouch *> *) touches withevent: (Uievent *) event,-(void) touchesended: (Nsset<uitouch *> *) touches withEvent: ( Uievent *) event.
4. How to get the coordinate point of the gesture click. How to use: Locationinview. Is the method of Uitouch.
5. What types of objects can be stored in an array?
6. The structure is converted to an object, and the object becomes a struct. This column is a conversion of cgpoint/nsvalue.
7. Get information from the array and convert it to a string.
8. Use of basic animation cabasicanimation. This example is the jitter of the animation. How to make animation turn on animation again????
9. Drawing of the quartz2d.
10. Storage of data passwords.
Third: Difficulties in the control design process. 1. The origin in the control, how to select which control. 2. First click to get the coordinates, not the origin area does not draw. 3. When the point is the origin point, the origin is changed by color. 4. When plotting the route, make a gesture to track the drawing. 5. When the drawing is complete, the edges of the route are removed. 6. Draw the route, how to clear the drawn route. 7. Draw the row of points to repeat. Fourth: The effect of the control.
Fifth: The calling method of the control. control invocation is straightforward, as long as two lines of code are available.
gesturespasswordview * Gesturesview = [[ gesturespasswordview alloc " initwithframe Span style= "COLOR: #000000" >: self . view frame ];
[[uiapplicationsharedapplication]. Keywindow addsubview: Gesturesview];
Sixth: Need to add me or buckle. only pay 2 yuan (red envelopes can also). You can get the source code. Thank you for your support.
Nine Gongge lock screen and set password (nine-point password disk)