UITextField placeholder and text not aligned in iOS9 - ios

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.

Related

XCode 8 autolayout preview shows a broken UI while it is working well on phones

I'm using XCode 8 and storyboard to make my UI but I am experiencing some strange issues with autolayout.
In fact, I tried something simple : centering a UILabel in my UI :
It looks good here. And to preserve the UI design, I added two constraints, like this :
with another one for the spacing between the UILabel and the "Sign In" button.
And when I build this view in an iPhone 7, iPad etc, it looks pretty good. However, when I switch the phones in the storyboard, the UILabel is moved and it doesn't look good :
So my question is : is there an issue with the preview in XCode 8? Or is it just a normal behaviour?
Thanks!
The orange labels in the preview mean that the label is not in its final location. You can force xcode to refresh by clicking the update frames button at the bottom of the screen, next to the constraints tie-fighter icon.

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.

Make the keyboard in my iOS 7 app translucent/transparent

I've seen that iOS 7 brings some cool features in terms of design, and I was wondering whether I can make the keyboard transparent, as I've seen in some apps.
If so, how can I do it?
I've done a bit of research but haven't found much about it.
Assuming you're working with Xcode 5, the keyboard in iOS 7 IS transparent by default. You don't have to do anything. In IB/Storyboard, place a UITextField onto a ViewController, and turn that ViewController's view green (or some other color). When you click in the UITextField and the keyboard comes up, you'll notice that you can see the view's background color through the keyboard.
In order for the keyboard to be translucent by default, you will need to build your app on Xcode 5 with your Base SDK set to iOS 7.
If you are using an IB file originally created in an earlier Xcode, click on the File Inspector and change the View As property to Xcode 5.

iOS 6 UITextView Link Detection Issue

I am coming across a strange bug in my app, that I believe is an iOS 6 bug.
I have a UITextView that contains some text that has some links and phone numbers. In my storyboard, I have Links & Phone Numbers checked under 'Detection' for my UITextView. In code I also do:
_txtvFooter.editable = NO;
_txtvFooter.dataDetectorTypes = UIDataDetectorTypeAll;
The issue I am having is a strange one, but when I run my app onto my device (or sim) from Xcode, the UITextView detects all of the links fine, and I can click them. If I then run the app not in debug (not running through Xcode), the links show as black standard text and cannot be touched. Note this is only happening on iOS 6.
On the iOS 5 simulator, the links show as blue and are clickable no matter if the app is run in debug, or just ran from the simulator.
I have looked all over the internets, and cannot find a solution or anyone else who has reported this issue. Does anyone know if something changed in iOS 6 specifically? I thing is, like I said it detects the links when run straight from Xcode, so to me it seems like an iOS 6 bug.
Any help is appreciated!
I found what was causing my issue. What I was doing was placing a UIView in the footer of a UITableView in Storyboard that contained a UITextView.
The fix was dumb... I removed the UITextView from the UIView and just used that as the footer (I at one point had multiple textviews in the footer) and the links began detecting.
I still believe this is a bug though-- because if you do need to use a UIView the links would not detect from the textviews within.

Resources