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.
Related
I'm learning iOS programming with Xcode and this bug is driving me nuts. I'm on the latest version of Xcode. Whenever my cursor changes to the "Adjust size" icon, it won't change back to the normal "Pointer" icon as expected.
Here's a video of the bug. Notice that when I cross slowly over the vertical edge of the pane, the cursor keeps the "Adjust size" icon. This only happens on some of these pane edges.
I do have several tweaks installed on my Mac, since the OS by default is terrible for productivity. But this isn't happening with any other programs.
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.
I don't know if someone also has this problem in Xcode 6 but whenever I add the custom font in interface builder and change the text or size of label the font changes to system and the custom font diapers from the list. I have to delete it from my project and add it again to Supporting Files to make it appear again in the list.
Is it only me? or someone has faced this issue?
(I've added the font also in info.plist)
Restarting Xcode seems to fix this temporarily at least.
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)?
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.