There are some methods can help us understand more knowledge about drawView skill
UIBezierPath is one of drawView Method,you can custom path you want. and if you wanna a close path,you must write[path close];
The-[UIColor setFill] for setting the color of the line.