title: Marquee the text of UIButton
body: <p>I have a <code>UIButton</code> whose text is coming from server. The width of the button is fixed. What I want is, if the text of button exceeds the width of button, the text should be marquee within the button. If the text fits within the button width, there should be no marquee effect.  </p>
  
  <p>I followed some links (<a href="http://lab11.com/blogs/How-to-create-a-marquee-text-for-an-iPhone-app.html" rel="nofollow noreferrer">one</a>, <a href="https://stackoverflow.com/questions/1369314/how-to-add-a-moving-text-in-iphone">two</a>) but I am still hung up on the issue. I tried to implement first link but with no success. The text is not moving.  </p>
  
  <p>Is that because I need to take button inside a <code>UIView</code> or moving of text can happen within a button?  </p>