2011-04-09

Multi-line text fields in iOS

Working on an iPhone app for my mom's store (http://www.thistlesandthingsgifts.com), I was struck by the lack of a border for UITextView. I found reference to people saying that you could set on, but I was stumped on finding it. I was able to set colors (background, or embed it in a scrollview and then set that background), but I always ended up with sharp corners. I wanted rounded corners. So, I worked around it in kind of a hokey way.

I just put a button behind it.

So, now I have a button (that is not enabled, so it can't be clicked) underneath, and slightly larger, than the text view that is editable. This gives at least some delineation between the text view and the rest of the view layout. My only issue now is that it doesn't have the look of UITextField with the slightly inlaid text editing area.

No comments: