title: Empty UITableView not bouncing when loaded from a nib
body: <p>A UITableView should bounce (even when empty) when user scrolls as long as the <code>bounces</code> and <code>alwaysBounceVertical</code> properties are set to YES. When I initialize a UITableViewController, everything works as expected. When I initialized a UIViewController loaded from a nib with a simple view hierarchy: a top level UIView with a single UITableView child, then the table view doesn't bounce anymore. Here is the code I used:</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  
  @interface AppDelegate : UIResponder &lt;UIApplicationDelegate, UITableViewDataSource&gt;
  @end
  
  @implementation AppDelegate
  
  @synthesize window = _window;
  
  - (BOOL) application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
      self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
  
      UIViewController *rootViewController = nil;
      UITableView *tableView;
      BOOL loadFromNib = NO;
      if (loadFromNib)
      {
          rootViewController = [[UIViewController alloc] initWithNibName:@"ViewController" bundle:nil];
          tableView = [rootViewController.view.subviews objectAtIndex:0];
      }
      else
      {
          rootViewController = [[UITableViewController alloc] initWithStyle:UITableViewStylePlain];
          tableView = (UITableView *)rootViewController.view;
      }
      tableView.dataSource = self;
      NSLog(@"%@ bounces: %@", tableView.class, tableView.bounces ? @"YES" : @"NO");
      NSLog(@"%@ alwaysBounceVertical: %@", tableView.class, tableView.alwaysBounceVertical ? @"YES" : @"NO");
  
      self.window.rootViewController = rootViewController;
      [self.window makeKeyAndVisible];
  
      return YES;
  }
  
  - (NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  {
      return 0;
  }
  
  - (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      return [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:nil];
  }
  
  @end
  </code></pre>
  
  <p>When I run this code with the <code>loadFromNib</code> variable set to YES or NO, it always logs this:</p>
  
  <pre><code>UITableView bounces: YES
  UITableView alwaysBounceVertical: YES
  </code></pre>
  
  <p>But when I load it from the nib (i.e. <code>loadFromNib</code> is set to YES), the table view doesn’t bounce when I try to scroll. Why doesn’t it bounce?</p>