Border control for a textView fields in IB

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

  1. macrumors regular

    boyplunder

    Joined:
    Sep 8, 2008
    Location:
    UK
    #1
    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?

    Boyplunder

    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.

    http://images.macrumors.com/vb/images/attach/png.gif
     

    Attached Files:

  2. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    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. thread starter macrumors regular

    boyplunder

    Joined:
    Sep 8, 2008
    Location:
    UK
    #3
    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.

    Boyplunder
     
  4. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    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