mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
fixing bug with splitview
This commit is contained in:
parent
53e1a1d3cb
commit
ee00402c7f
1 changed files with 4 additions and 0 deletions
|
@ -150,6 +150,10 @@
|
||||||
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
|
- (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 */
|
/* 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];
|
[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 {
|
- (void)didReceiveMemoryWarning {
|
||||||
|
|
Loading…
Add table
Reference in a new issue