Textview looks different on iPhone 5

Discussion in 'iOS Programming' started by RagingGoat, Dec 20, 2012.

  1. RagingGoat macrumors 6502

    Joined:
    Jun 21, 2010
    #1
    I have a few text views in my app. They all look fine on 3.5" devices and are fine for the most part on the iPhone 5 but the text doesn't go all the way to the bottom of the screen on the 4" screen like it does on the 3.5". I've gone into IB and resized the text views on both the 3.5 and 4" screens. Does anyone have any suggestions?
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    How? Are you using struts-and-springs or Auto Layout?
     
  3. RagingGoat thread starter macrumors 6502

    Joined:
    Jun 21, 2010
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    Um, we'll need more details. Explain your Auto Layout constraints. Include screen shots, if necessary.
     
  5. RagingGoat thread starter macrumors 6502

    Joined:
    Jun 21, 2010
    #5
    Here are screenshots of an example in the simulator for both 3.5" and 4" screens, screenshots of it running on an iPhone 4S and an iPhone 5, and a screenshot of Xcode.
     

    Attached Files:

  6. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #6
    I'd like to see all the auto-layout constraints for the textView, but I can see from that last screenshot that you have a constraint that makes the height 298. How do you expect it to get any taller on the iPhone 5?
     
  7. RagingGoat thread starter macrumors 6502

    Joined:
    Jun 21, 2010
    #7
    I'm not really sure. It gets taller in the simulator but not on an actual device.
     
  8. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #8
    Well, that confuses me.
     
  9. RagingGoat thread starter macrumors 6502

    Joined:
    Jun 21, 2010
    #9
    ha!
     

Share This Page