title: How is Twitter profile screen in iOS version built?
body: <p>I'm wondering how did Twitter implement it's profile screen. At first I thought it is a table view with a header (profile info) and section header (segmented control to choose tweets/media/favorites). It would make sense for me as the profile info goes away while user scrolls down, but segmented control stays, and that's exactly behavior of plain UITableView header view and section header. There is also an image view at the top, under navigation bar, but that's not what's important for me. Here's a visualization of what I think it is:</p>
  
  <p><a href="https://i.stack.imgur.com/Vpfho.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Vpfho.png" alt="Twitter profile screen architecture (my visualization)"></a></p>
  
  <p>I tried to recreate it in Interface Builder and that's what I got. The slider drew my attention: it's different than in Twitter app, it starts at the top of table view header, not at the top of cells.</p>
  
  <p><a href="https://i.stack.imgur.com/vJDrq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/vJDrq.png" alt="My implementation in Interface Builder"></a>
  <a href="https://i.stack.imgur.com/6x3dN.png" rel="noreferrer"><img src="https://i.stack.imgur.com/6x3dN.png" alt="Twitter&#39;s slider is different"></a></p>
  
  <p>So… how did they achieve it? Did they put a UITableView in a UIScrollView and handled touch/scroll events themselves? I don't think so, since it's discouraged, but I can't think of another explanation.</p>