What's a better way to display a handle for resizing a view on iPhone / iPad?

Posted by Christian on Stack Overflow See other posts from Stack Overflow or by Christian
Published on 2010-04-11T13:32:18Z Indexed on 2010/04/11 13:53 UTC
Read the original article Hit count: 279

Filed under:
|
|

I want to display a handle at the corners of a UIView that can be used to resize the view. How can I display the handles floating on the top of everything else and still have a connection to and be in sync with a view?

The solution I implemented before looks like this:

alt text

I put the view into another view that shows the handles on top of the corners. The problem with this approach is that the handles add extra space to the original view's size. Since Apple recommends at least 40 x 40 px for the size of a button, it is not very little space and also goes beyond the visible bounds of the original view. Another problem is that the original view has to be encapsulated in this 'helper view' object and thus becomes a part of something although it really is the main component.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about ipad