title: Showing scroll indicators on a UIScrollView when programmatically scrolling
body: <p><strong>EDIT</strong>: The crux of this problem is that scroll indicators do not show during programmatic scrolling, but I would like them to. My original question (provided below) assumed this had something to do with <code>userInteractionEnabled</code>, but it does not. The mention of a master and slave UIScrollView is also possibly distracting from my core problem (the need to show scroll indicators during a programmatic scroll). Apologies to those of you who answered or commented based on my misleading assumptions/info.</p>
  
  <p><strong>Possible Solution:</strong> The only way I found to do this was to use the fact that scroll indicators are instances of <code>UIImageView</code> and use a category on it to hack the alpha. This <a href="http://www.developers-life.com/scrollview-with-scrolls-indicators-which-are-shown-all-the-time.html" rel="nofollow">article</a> shows the approach. It was then a case of using tags and scroll view delegate methods to turn the alpha permanently on prior to a programmatic scroll, and permanently off when the scroll is finished. This feels hacky though, so any further suggestions would be welcome!</p>
  
  <p><strong>Everything below this line is the original unedited question to provide context to users' answers and comments</strong></p>
  
  <p>Setting <code>userInteractionEnabled</code> in a <code>UIScrollView</code> object to <code>NO</code> appears to disable the scroll indicators upon programmatic scrolling. This happens even if you have <code>self.showsVerticalScrollIndicator = self.showsHorizontalScrollIndicator = YES;</code></p>
  
  <p>Is there any way to programmatically scroll the scroll view but still show the indicators?</p>
  
  <p>(To provide some context: I have a slave scrollview that mimics a master scrollview by hooking up the scrollview delegate callbacks and passing the content offset to the slave scrollview. However, I don't want the user to be able to directly manipulate the slave scrollview, but I do want scroll indicators).</p>