forked from organicmaps/organicmaps-tmp
[cleanup] [ios] Fixed conflicting category methods.
This commit is contained in:
parent
3b4f6e9bb2
commit
940bcb59d0
2 changed files with 16 additions and 23 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue