title: UILabel auto scroll like a marquee
body: <p>I am trying I make a UI label auto scroll the text that is inside it like a marquee. The below code works depending on what kind of text/content I throw at it. I can't tell what works and what does not. What happens is that the label does not show anything, then suddenly scrolls the text at an extremely high speed that you can't read it.</p>
  
  <p>For some reason, this works perfectly on the iPhone but not on the iPad. I am guessing because the text I am putting at the iPhone is always way bigger than the Uilabel's size?</p>
  
  <p>Here is the code:</p>
  
  <pre><code>self.currentTrack.textColor = [UIColor colorWithRed:15.0/255.0 green:176.0/255.0 blue:223.0/255.0 alpha:1];
  self.currentTrack.labelSpacing = 35; // distance between start and end labels
  self.currentTrack.pauseInterval = 1.7; // seconds of pause before scrolling starts again
  self.currentTrack.scrollSpeed = 30; // pixels per second
  self.currentTrack.textAlignment = NSTextAlignmentCenter; // centers text when no auto-scrolling is applied
  self.currentTrack.fadeLength = 12.f;
  self.currentTrack.scrollDirection = CBAutoScrollDirectionLeft;
  [self.currentTrack observeApplicationNotifications];
  </code></pre>
  
  <p>}</p>