Buttons not underlined in Xcode but underlined on iPhone - ios

I have made an app with buttons. The buttons aren't underlined in Xcode. However, if I run this app on my iPhone, the buttons are suddenly underlined. How do I prevent buttons from being underlined?

Just bumped into the same problem, but for those who do not know how to enable "Button Shapes"
Launch the Settings app on your iPhone or iPad.
Tap on General.
Tap on Accessibility.
Turn On the option for Button Shapes — it's about half way down the page.
You are welcome!

Related

UILabel Text Not Appearing on Some Devices for iOS

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.

iOS: When VoiceOver is turned ON using the Accessibility shortcut of triple clicking Home Button, the screen gets turned off

The accessibility elements are being read correctly in the background, i.e the labels being read can only be heard but cant see the screen as it blacks out, just the screen goes dark. Anybody come across the issue?
Verified this is in iOS 11 with iPhone 6s, iPhone 7 plus.
(Project is in Swift although it must not matter)
Found out that with 3 finger triple tap on screen , the above setting gets disabled. And the Accessibility Voice Over starts to work as normal, i.e reading the labels with the screen turned ON.

UIButton title issue on iPhone6 with iOS9.3.2

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

UI button shows on simulator but not device

I have a IU button that has an image, when I run on the simulator everything shows up and is working. however once I try to run on the device the button is not there. I already checked for case sensitivity, if its in the bundle phase, changing the button from "weak" to "strong", checking the button alpha and still no luck. Any other suggestions? Thanks.
update.
so now I tried to delete the image and add text to the button to see if the button will show with text(on the device). The button is still visible on the simulator but on the device I get no text, no button. So now my question is, what could be possible reasons a UI button would show on the simulator but not the device?
I also used a previous app as a test, I added a button and ran it on the same device and the button showed up with the same image I am trying to implement. so I am lost as to why its not working on my current app.

Back button appears with button outline

I am working on an app which supports iOS 6 to latest iOS versions. When I run the app in Xcode 5 and select target as iOS7; Sometimes the back button in navigation bar appears with the iOS6 button style as an outline around it in iOS7. I wanted to enable default feature of iOS7 that back button without outline.
other buttons look fine with iOS7 without outline.
I think you are using images for the button, use default system buttons.
check whether you have used button style as UIBarButtonItemStylePlain

Resources