Text Not using Entire Width of Text View - ios

I have a text view in my app and the text in it looked fine in Xcode 4.6 but the text doesn't use the entire width of the text view in Xcode 5 and iOS 7. Any ideas what is going on?

I corrected it by changing the text to plain and then back to attributed. Not sure why there was an issue though.

Related

Text was not showing from right to left in Hebrew language in iOS 9.1?

In my app I am displaying some text in Hebrew. when it was in previous iOS versions it was working fine. When I am upgrade to iOS 9.1. It was showing like from left to right. But it should right to left. How can I resolve this issue ?
From iOS 9 onwards text direction sets automatically.
Just make sure that your UILable or UITextView text allignment is set to NSTextAlignmentNatural. If you are using storyboard or xib. you can set text direction like below image.

UITextField placeholder and text not aligned in iOS9

I have a simple UITextField (center aligned) I placed using storyboards, with a standard font. For some reason as soon as I start typing the text renders in a different spot from the placeholder text.
This is on iOS9 running on Yosemite (XCode V7.0)
Seems like some issue with storyboards occurred. I redid this view, and now it works fine. Strange.

Why is the UITextField placeholder text decreasing in size?

I have a peculiar problem in Interface Builder with placeholder text. Some of the placeholder text is smaller than the rest and I can't find a reason why. When I duplicate a UITextfield with full-sized placeholder text it changes instantly to a smaller font.
Xcode 6.1.1 on Mac OS X 10.10.2
This is just a visual bug in Xcode 6. Whenever you copy an element with text, that text's font-size seems to visually be altered. However, when you build and run the app, it should show up normal on your device or simulator.
You can fix the visual bug by clicking on the copied element, going to the attributes inspector, and then changing the font-size down one and then back up one.

Text in an Attributed UITextView isn't formatted on iOS6

Using Xcode 5.1.1, iOS SDK 7.1, this problem can be reproduced as follows:
Create a new single view project
In the main storyboard, add a Text View and make it of type Attributed in the Attributes Inspector
Set the text to be something like "test text", and format the second word to be bold, so that it reads "test text"".
Run the app in the simulator
On the iOS7 simulator, the text is shown with the proper formatting. However, if you set the project Deployment Target to be iOS6 and run this on the iOS6 simulator, the formatting is lost.
I need to be able to set this in the storyboard or XIB itself, not in code, since I have to copy and paste a lot of formatted text.
Is this an Xcode/iOS6 bug or am I doing something wrong?
Did you try to set the given view compatibility to iOS6 (click to the view of the controller and then check the File Inspector)?

UISegmentedControl, text truncated on iOS 7

I have an UISegmentedControl in my app and on iOS 7 text is truncated. Instead of having "Stations" I have "S." even if my control is 320 width.
Using Spark Inspector I am able to see that size of label containing text is very small (13 pixels).
Also it works on iOS 7.1.
Do you have an idea?
Thanks for your help.
Thierry
EDIT: I created a blank project and it works...

Resources