From 19ba5d5ddfd7a20cb3e3c7b026f71eb09df88913 Mon Sep 17 00:00:00 2001 From: Guillaume BIENKOWSKI Date: Mon, 7 Jul 2014 16:15:15 +0200 Subject: [PATCH] Fix the contact view in landscape for ipad --- Classes/ContactsViewController.m | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Classes/ContactsViewController.m b/Classes/ContactsViewController.m index d091d65bc..621f3c13f 100644 --- a/Classes/ContactsViewController.m +++ b/Classes/ContactsViewController.m @@ -162,7 +162,14 @@ static UICompositeViewDescription *compositeDescription = nil; self.tableView.frame = subViewFrame; self.tableView.dataSource = self.tableController; - self.tableView.delegate = self.tableController; + self.tableView.delegate = self.tableController; + + self.tableView.autoresizingMask = UIViewAutoresizingFlexibleHeight | + UIViewAutoresizingFlexibleWidth | + UIViewAutoresizingFlexibleTopMargin | + UIViewAutoresizingFlexibleBottomMargin | + UIViewAutoresizingFlexibleLeftMargin | + UIViewAutoresizingFlexibleRightMargin; [self.view addSubview:tableView]; [self update]; @@ -319,7 +326,7 @@ static UICompositeViewDescription *compositeDescription = nil; - (void)viewDidUnload { -[self setToolBar:nil]; -[super viewDidUnload]; + [self setToolBar:nil]; + [super viewDidUnload]; } @end