I'm developing a radio button module and I want an invisible button in a view.
I have deleted the text in the storyboard but when I run it, it shows "Button."
Here are some images:
Setting the titleLabel.text = "" works until it is clicked where then the text returns.
I faced this issue after I update my Xcode. Till then all buttons with empty title were showing fine. But after the update it started to show "Button" text for every empty buttons on device. At the same time in storyboard it was empty.
Writing button.setTitle("", for: .normal)
everywhere was a difficult task since there were many buttons.
So after spending hours I discovered how to fix it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With