From ee00402c7f38344aa9048f16b96173f8b49174a8 Mon Sep 17 00:00:00 2001 From: Roy Yang Date: Wed, 11 Jul 2012 20:51:36 -0700 Subject: [PATCH] fixing bug with splitview --- media/iphone/Classes/NewsBlurViewController.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/media/iphone/Classes/NewsBlurViewController.m b/media/iphone/Classes/NewsBlurViewController.m index 85242615a..b7fa1ec21 100644 --- a/media/iphone/Classes/NewsBlurViewController.m +++ b/media/iphone/Classes/NewsBlurViewController.m @@ -150,6 +150,10 @@ - (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration { /* When MGSplitViewController rotates, it causes a resize of our view; we need to resize our UIBarButtonControls or they will be 0-width */ [self.navigationItem.titleView sizeToFit]; + UIButton *avatar = (UIButton *)self.navigationItem.leftBarButtonItem.customView; + CGRect buttonFrame = avatar.frame; + buttonFrame.size = CGSizeMake(32, 32); + avatar.frame = buttonFrame; } - (void)didReceiveMemoryWarning {