UISegmentedControl, text truncated on iOS 7 - ios

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...

Related

How to ensure that buttons scale properly to different screen size in Swift for iOS

I am new to Swift and I am still struggling to find an easy way to make sure that my UI will scale properly based on screen size.
My UI is made of few buttons and labels and it was built on a iPhone 8 Plus screen. But now when I run it on smaller or bigger devices, the button are either not entirely visible or not centered.
How can I make sure that what I see on the iPhone 8 Plus is being scaled correctly to other devices? Any example I can follow?
I am using Xcode 12 and latest Swift version.

iphone 6 size not recognized by website. css code need to be added

I have a problem. Recently I noticed that my website has a problem showing the text with iPhone 6 and 6+. the text is little bit out of margin in right. with the other phones it automatically resizes the screen and I am able to see the text fully. But in iPhone 6 I need to add some sort of code to the css file of my html5 website.can any one help me with this issue?

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.

Text Not using Entire Width of Text View

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.

UI label wont align properly in iOS 6/iOS 7

I created the applications using Xcode 5[IOS 7].I used the custom font for this applications.
While i run the application in IOS 7 the label alignment good.But when i run the same application IOS 6 the label alignment wont align properly.
iOS 7
iOS 6.
kindly give me the solutions.
You have to go with below step:
step (1)
Uncheck mark Autolayout field.
step (2)
From your nib file set value of that UILable is: "Y" = -20;
may be it will help.
This problem is pretty much weird but has a simple solution.I had been facing the same problem too.
Click on the label and then autoresize it by clicking Command key icon ⌘ (Command key) and the = (equal to) sign together.
This should autofit the label.

Resources