I followed THIS tutorial and i have two problems:
Use any of these nice examples :
Paint Pad
My-Palette
Drawing-View
ACEDrawingView
smooth-line-drawing-in-ios
Hope these helps you.