I have a UIViewController that contains a UITableView.
This UIViewController is being displayed in a UIPopoverController.
I might be very late to answer but for new user from iOS 7 please use the following line in your UIViewController i,e contentViewController of your UIPopOverViewConotroller
-(void) viewDidAppear:(BOOL)animated{
[super viewDidAppear:animated];
self.preferredContentSize=myTableView.contentSize;
}
Hope this will help for iOS 7 user.