Question: I'm trying to make resizable UIViews of which users can resize (code is done for that) and drag it around. Now I need to make it look like what it looks like in IB, with circles at its corners to drag, and dotted lines as borders of the UIView. 

How do you think I should go about doing this?

Many thanks.

Answer: 
The proper way to do that is to override the `drawRect:` method of the UIView subclass (your draggable views in this case.)

> 
> When you subclass UIView to create a custom class that draws itself, implement the drawRect: method to draw the view within the specified region. This method is invoked the first time a view displays or when an event occurs that invalidates a part of the view’s frame requiring it to redraw its content.
> 
> 
> 

You can see some instructions for doing custom drawing at: [drawrect:](http://developer.apple.com/iphone/library/documentation/uikit/reference/UIView_Class/UIView/UIView.html#//apple_ref/occ/instm/UIView/drawRect:)

Good luck.
I know this question is pretty old, but I wrote a custom control to achieve exactly this. Someone else who happens upon this question may find it useful: <https://github.com/spoletto/SPUserResizableView>

![Screenshot](https://i.stack.imgur.com/OhBXI.png)