How to make an invisible button in iOS App xib ? Hidden Vs. Custom type

By | October 7, 2013

 How to make an invisible button in iOS

 

iOS invisible button

iOS invisible button

I was developing an app where I needed to replace the existing buttons with the invisible ones, means in the background I’ve set my useful image that replaces buttons.

There were some sound play events on button touch up inside. I firstly, tried making the buttons hidden by ticking one of the properties of making a button hidden. 


The problem I faced was that on running the app the sounds were not being played. Tried a little to resolve it and the solution was :

* To select the button type to custom, that makes the button disappear and works like hidden. So now, sounds got played and it worked !


And in order to show the button getting pressed, tick the option of “shows touch on highlight”