Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 20, 2012, 11:06 AM   #1
RagingGoat
macrumors regular
 
Join Date: Jun 2010
Textview looks different on iPhone 5

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?
RagingGoat is offline   0 Reply With Quote
Old Dec 20, 2012, 11:25 AM   #2
dejo
Moderator
 
dejo's Avatar
 
Join Date: Sep 2004
Location: The Centennial State
Quote:
Originally Posted by RagingGoat View Post
I've gone into IB and resized the text views on both the 3.5 and 4" screens.
How? Are you using struts-and-springs or Auto Layout?
dejo is offline   0 Reply With Quote
Old Dec 20, 2012, 11:30 AM   #3
RagingGoat
Thread Starter
macrumors regular
 
Join Date: Jun 2010
Auto
RagingGoat is offline   0 Reply With Quote
Old Dec 20, 2012, 11:43 AM   #4
dejo
Moderator
 
dejo's Avatar
 
Join Date: Sep 2004
Location: The Centennial State
Quote:
Originally Posted by RagingGoat View Post
Auto
Um, we'll need more details. Explain your Auto Layout constraints. Include screen shots, if necessary.
dejo is offline   0 Reply With Quote
Old Dec 20, 2012, 12:36 PM   #5
RagingGoat
Thread Starter
macrumors regular
 
Join Date: Jun 2010
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 Thumbnails
Click image for larger version

Name:	iOS Simulator Screen shot Dec 20, 2012 1.24.14 PM.png
Views:	3
Size:	169.4 KB
ID:	384805   Click image for larger version

Name:	iOS Simulator Screen shot Dec 20, 2012 1.24.54 PM.png
Views:	2
Size:	142.5 KB
ID:	384806   Click image for larger version

Name:	photo.png
Views:	2
Size:	139.2 KB
ID:	384807  

Click image for larger version

Name:	iPhone5.png
Views:	2
Size:	142.1 KB
ID:	384808   Click image for larger version

Name:	Xcode.png
Views:	16
Size:	1.21 MB
ID:	384809  
RagingGoat is offline   0 Reply With Quote
Old Dec 20, 2012, 01:01 PM   #6
dejo
Moderator
 
dejo's Avatar
 
Join Date: Sep 2004
Location: The Centennial State
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?
dejo is offline   0 Reply With Quote
Old Dec 20, 2012, 01:52 PM   #7
RagingGoat
Thread Starter
macrumors regular
 
Join Date: Jun 2010
I'm not really sure. It gets taller in the simulator but not on an actual device.
RagingGoat is offline   0 Reply With Quote
Old Dec 20, 2012, 02:16 PM   #8
dejo
Moderator
 
dejo's Avatar
 
Join Date: Sep 2004
Location: The Centennial State
Quote:
Originally Posted by RagingGoat View Post
It gets taller in the simulator...
Well, that confuses me.
dejo is offline   0 Reply With Quote
Old Dec 20, 2012, 02:18 PM   #9
RagingGoat
Thread Starter
macrumors regular
 
Join Date: Jun 2010
Quote:
Originally Posted by dejo View Post
well, that confuses me.
ha!
RagingGoat is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 10:52 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC