How to remove image and write text in a UIButton in Swift?
<p>I have a button that displays an image from my Assets, on click of a button I want to replace the image by text,</p>

<p>I am doing this,</p>

<pre><code>workExpExpand.setImage(nil, forState: .Normal)
workExpExpand.setTitle("Done", forState: .Normal)
</code></pre>

<p>the image disappears, but the text is blank. </p>

<p>What can I do?</p>