How to drag the UIView using pan gesture to get the big space of the page?

I have a draw application. Users can drag the view to get the bigger space using pan gesture. Anyone has ideas? Anyone knows the link of the sample code? Thank you very much for any help!!

How to drag the UIView using pan gesture to get the big space of the page?
 
 
Q