Different font size inside textfield IOS 10 - iphone

I am testing my application in the new IOS 10, with Xcode-beta 8.
I have no idea why, but one of my text fields is displaying just the first letter in the right size.
It was working fine in the older versions.

Related

xcode 8 live preview not previewing properly

I have updated xcode to the last version (V8.0). In the previous stable version, the live preview sections shows the app exactly how it would be in the device. However, in the new version, the live preview sections shows the app exactly how it appears into interface builder.
how can I have the live preview as it was before?
Any idea will be appreciated.
Thanks in advance.
The Interface Builder of Xcode 8 has been thoroughly reengineered. It is not possible to set it back to the Interface Builder of Xcode 7.
You have two options.
Either you download Xcode 7.3.1 from the Apple developer center. But you'll lose the ability to use Swift 3. This option is absolutely not recommended since you'll also lose future updates and future new features.
Or you make yourself familiar with the new Interface Builder. That option is recommended. The Apple promotion tells you exactly why:
See a live preview of exactly how your app will appear on any Apple
device with full vibrancy. As you quickly switch between different
devices to customize your UI for size classes, you will always see the
same interface as your customers. Pan and zoom are incredibly fast,
and you can even edit your interfaces when fully zoomed out for a
bird's eye view of your storyboard.
A Beginner’s Guide to Auto Layout with Xcode 8
Also I can advise you to look at this thread. I had issues with the new Interface Builder as well. The key answer: Split big Storyboard into many small ones. And update the Constraints from Xcode 7 projects as suggested in the answer:
1) Remove only one of the "Height equals: xx" constraint from one of your views inside the cell.
2) Update all frames.
3) Select the view you removed constraint from.
4) Click to add new constraint button. Now it should be showing a new height, probably with a decimal value.
5) Add height constraint without changing the value inside the box.
But splitting my Storyboard into many smaller ones did the trick. Take a Storyboard for every scene of your App. Like Login. Tweets. Pictures. Settings.
In Xcode 8, preview is by default attached at bottom side of view editor,
Here is the screenshot of the bottom view, which gives you the preview,
Select Any of the size shown to preview it in respective size.

Textview not showing whole text in ios 8

I have problem with textview because when we set the some text into text view at run time, it not shows the whole text, its showing only few text and spaces is available in textview. So please suggest me any way to fix this problem.It was working in ios 7 but getting problem in ios 8. This is screen shot.
I have added screen shots which show the text but not whole text but when we have tapped on textview it shows full text.
Thanks.

wrapping text in RTL language using LWUIT

I'm developing a j2me application using Netbeans IDE and LWUIT library. I'm using Persian (RTL) language in my application using localization and showing them with bitmap font.
In order to wrap multiple line texts in a Form as Labels or in TextAreas. My problem is that they are breaking to multiple lines when they reach to the middle of screen width i.e they don’t fill one line till the end of the screen width and go to the next line. I set
maxwidth=Display.getInstance().getDisplayWidth());
Would you help me with this issue?
try using YourComponent.setPreferredW(Display.getInstance().getDisplayWidth());
When creating the text area set the columns number to a large value (100 or so).
In some languages like Hindi(India) where unicodes are used even though they are LTR , for that we can do TextArea.setUseStringWidth(true);
This will wrap the text according to the font glyphs of that language.

Custom Font question

I have an iPad/iPhone app and when I pick a font for my label it does not display the typeface.
For example, I have a Label and have chosen the Handwriting Dakota font, but when I view my .xib it is a standard font... likewise, the font does not show correctly in the simulator.
What do I need to do to make font show in the correct typeface?
Unless you have your app install your custom font on the device, you are limited to the typefaces that iOS ships with. See iosfonts.com for a list.

UiTextView doesn't display text on iphone os 2.0

My text view shows the text when i am using iphone OS 3.0-
but for some reason it will not show the text on OS 2.0.
I can get the inputed text on OS 2.0 and even save it to file,
and then restore the text but still- the text is not visible on OS 2.0.
I have tried changing the scrolling properties and the font and the color and the hidden property -
Anybody have an idea what it is?
Thanks-
Nir.
Answering my own question:
I added my text view to a button view-
so i changed it and now I am adding it to a uiView.
I guess there is a different way for displaying a text field on top of a button in the old OS 2.0.