1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

Border control for a textView fields in IB

Discussion in 'iPhone/iPad Programming' started by boyplunder, Feb 19, 2009.

  1. macrumors regular


    Hi All,

    I have a text view field on a detail window in IB that always has an extra gap at the top, which I want to get rid of. The settings are all zero, and you can't set a minus value, as far as I can see. Does anyone know if there is a way to eliminate this?


    Added: Above the text view [selected] you can see an extra bit of space that isn't all the way round. The scroll control that appears when you scroll the text starts a few millimeters higher than the text. I would like to amend this so the border space is all the same. It looks like this is just how it is.


    Attached Files:

  2. Moderator


    Staff Member

    Not sure I understand. Can you provide us with a screenshot?

    EDIT: Now that I've seen the screenshot (a new post rather than editing the original would've made this thread flow nicer), I think I see what you're talking about. Have you tried adjusting either contentInset or contentOffset?
  3. macrumors regular


    Text view issue

    It seems to me that this is a set issue.
    I would have thought that the logical thing to do was leave the offsets and let the developer choose. What actual seems to be the case is that there is a top, left, right and bottom preset on any new text fields, but the top seems to be just big by default.

    If anyone has a view on this, please post.

  4. Moderator


    Staff Member

    In order to better satisfy the HIG, I believe Apple likes to build in some spacing defaults so that things initially are laid out more pleasing to the eye, rather than relying on the developers to have to go in and tweak everything to get it to be pleasing.

Share This Page