[cleanup] [ios] Fixed conflicting category methods.

This commit is contained in:
Ilya Grechuhin 2017-01-10 15:59:35 +03:00
parent 3b4f6e9bb2
commit 940bcb59d0
2 changed files with 16 additions and 23 deletions

View file

@ -9,29 +9,6 @@ CGFloat const kTopOffset = 36;
CGFloat const kBottomOffset = 60;
} // namespace
@interface MWMPPView (ActionBarLayout)
@end
@implementation MWMPPView (ActionBarLayout)
- (void)layoutSubviews
{
[super layoutSubviews];
if (!IPAD)
return;
for (UIView * sv in self.subviews)
{
if (![sv isKindOfClass:[MWMPlacePageActionBar class]])
continue;
sv.maxY = self.height;
break;
}
}
@end
@interface MWMiPadPlacePageLayoutImpl ()
@property(nonatomic) CGFloat topBound;

View file

@ -1,4 +1,5 @@
#import "MWMCommon.h"
#import "MWMPlacePageActionBar.h"
#import "MWMPPView.h"
#import "UIColor+MapsMeColor.h"
@ -81,4 +82,19 @@ CGFloat const kTableViewTopInset = -36;
[self.tableView removeObserver:self forKeyPath:kTableViewContentSizeKeyPath context:kContext];
}
- (void)layoutSubviews
{
[super layoutSubviews];
if (!IPAD)
return;
for (UIView * sv in self.subviews)
{
if (![sv isKindOfClass:[MWMPlacePageActionBar class]])
continue;
sv.maxY = self.height;
break;
}
}
@end