I created button using storyboard and set the tittle with out any underline using custom font. But i got underline under title of button in only iPhone6 with iOS 9.3.2 but not all devices. Please see the below image. I have checked all apple documents but i didn't get any solution. Is the iOS problem or iPhone problem or any settings on iPhone6 related button?
Open Setting app in your iphone, Go to general then go to accessibility, under accessibility turn off the switch for Button shapes
It may solve your problem i think. Because if you have used button with type system then it will use system's configuration for button!!
Related
This problem appears to only affect the iPad Mini 5 and the iPad Mini 4. Not the iPhone 11.
It's only the UILabel fields text. It's only on the Device, not on the Simulator.
The text display fine on anything but the iPad Mini 5 device nor the iPad Mini 4.
I've tried changing the fonts. I've tried changing just about everything that's changeable.
The app itself has been on the app store and working fine for years. Now it's not working on the iPad.
I've tried checking the uppercase/lowercase thing mentioned elsewhere. The UILabel Field background shows clearly. Just not the text that's supposed to appear in the fields.
Thanks
Attached is an image of the iPad Storyboard. The [Change Image] icon is a Button, and displays and works fine.
Any chance your device is on Dark Mode? If so, that would explain why text doesn't show and background does. Dark Mode by default will switch black texts to white and the other way around.
If that's the case and you don't want to support dark mode on you app, just disable it by adding this to your .plist:
<key>UIUserInterfaceStyle</key>
<string>Light</string>
I found the solution.
In the Attribute Inspector of the UIText I mean UILabel fields not displaying on the iPad, change the Behaviour from Enabled to Not Enabled.
In other words, I had that box ticked. I unticked it, and now it works on all devices.
Thanks for the responses.
I've spent a few days trying to research this as I feel the answer would be a 1 liner, but here goes:
This question does not refer to custom keyboards on iOS but to the system keyboard that pops up for first responders.
I noticed that the default keyboard on most apps is shorter and more slick than the keyboard I end up getting on my app.
Here are the keyboards (sorry for not uploading the photos, I don't have enough rep yet)
Most apps:
http://i.imgur.com/FRU19oy.png
The keyboard I'm getting:
http://i.imgur.com/poEiNGs.png
Is it a some config that I'm missing? An OS version target issue?
Thanks!
You can add the following to your code:
textField.autocorrectionType = UITextAutocorrectionTypeNo;
Where textField is your text field or text view that is showing the keyboard.
It looks like you have a custom keyboard enabled on your device - you can disable it within the keyboard settings at the OS level. The "stretched" keyboard some apps experience is related to the scaling that takes place to stretch up iOS 7 apps to iPhone 6/6+ but it doesn't look like this is the issue you're experiencing based on the screenshots.
iOS 7 and later allows a user to specify text size in Settings/Display & Brightness/Text Size. I don't see, or have yet to discover, how to change this in the iOS 7/8 Sim to test my app. Is it possible? If so, how/where is it done?
Thank you
In the simulator, go into settings (Choose "Home" on the hardware menu). Then General->Accessibility->Larger text. You also should slide the switch at the top to "Larger Accessibility Sizes". You'll then get a slider to adjust the text size.
Hope this helps.
Xcode 9.0 onwards
You can resize font of simulator as -
Xcode ► Open developer tool ► Open accessibility inspector
Select simulator from dropdown after that click setting(Gear) icon.
If you prefer an automatic approach to set this, see this question:
How to test Dynamic Type (larger font sizes) in iOS Simulator
The Accessibility Inspector (Xcode/Open Developer Tools/Accessibility Inspector in Xcode 8) as mentioned here is a great tool for testing Dynamic Fonts and accessibility in general. The WWDC 2016 video on is is well worth a watch.
I have an app that uses button images that are being changed as the user interacts with the button.
I just converted my app to iOS7 in Xcode 5, but now my button images are not showing any more. All I see is a bright blue square where the button should be.
When I change the tint from blue to clear, the buttons show, but the button does not change when I push it.
The images are still in my supported files folder and should be properly used by Xcode...
Does anyone have a similar issue? Can this be fixed easily?
There is a new button type called UIButtonTypeSystem with iOS 7.
On your .xib file, change the button type to Custom.
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.