title: Orientation is not working for UITableview inside AlertView
body: <p>i have created Custome AlertView Class by inheriting UIAlertView
  and i added UITableView in the 
  -(void)prepare</p>
  
  <p>method</p>
  
  <p><img src="https://i.stack.imgur.com/B3SC3.jpg" alt="This is Image of TableView inside UIAlertView with Potrait Orientation"></p>
  
  <p><img src="https://i.stack.imgur.com/ahoIn.jpg" alt="This is when i Changed Orientation"></p>
  
  <p>can any one Suggest me the way to get out of this problem...
  Thanks in Advance.</p>
  
  <p>i have done this to keep track of Orientation change</p>
  
  <pre><code>    [[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
      NSNotificationCenter* notifCenter = [NSNotificationCenter defaultCenter];
      [notifCenter addObserver:self
                      selector:@selector(orientationChanged)
                          name:UIDeviceOrientationDidChangeNotification
                        object:nil];
  </code></pre>