Objective
- Learn how custom control works
- Learn how to draw shapes and images in UIView
- Learn how to pass data with Delegation and Target-Action
Steps
- Follow the tutorial and create a custom slider
- Add a target which can be controlled by the slider. In this case, it’s another UIView – FaceView
- Create the datasource delegate protocol for the FaceView and implement it in the main controller
Takeaway:
1. CGGeometry: http://nshipster.com/cggeometry/
Source code at Github