I totally agree with @maddy's comment: This is not a problem. You should not try to resist any changes in accessibility set by the user. They are there for some reason.
But I came across a way to accomplish the task ...
In addition to UIButton, you will also need to create a .png file that does not contain anything (which means that all content has 0% opacity). Go and load it into your xcode project assets.
Now go and set the Background button for this image you just provided. (In my case, I called it clear ). This will remove the underline from the button text. However, now you cannot see the borders of the button. This can be solved by changing the background of the View button. Go ahead and select any color for the Background View property, and now the View background clearly defines the borders of the buttons. You can see this because your clear.png has an opacity of 0%.
see attribute inspector for UIButton here.
Instead of trying to defeat the underscore by making a shortcut, follow some steps with the UITapGestureRecognizer, this will allow you to still use UIButton. Preservation of built-in accessibility functions to indicate buttons for people who want to do this.
source share