Merge pull request #489 from VladiMihaylenko/vm-master

[ios] Fixed warning with overridden bookmarkSizingCell method.
This commit is contained in:
igrechuhin 2015-11-10 14:29:37 +03:00
commit 74653068be

View file

@ -15,7 +15,6 @@ static NSString * const kPlacePageBookmarkCellIdentifier = @"PlacePageBookmarkCe
@property (weak, nonatomic) MWMPlacePageEntity * entity;
@property (weak, nonatomic) IBOutlet MWMPlacePage * ownerPlacePage;
@property (nonatomic) MWMPlacePageBookmarkCell * bookmarkSizingCell;
@end
@ -186,6 +185,13 @@ static CGFloat const kTitleBottomOffset = 2.;
[self setNeedsLayout];
}
- (MWMPlacePageBookmarkCell *)bookmarkSizingCell
{
if (!_bookmarkSizingCell)
_bookmarkSizingCell = [self.featureTable dequeueReusableCellWithIdentifier:kPlacePageBookmarkCellIdentifier];
return _bookmarkSizingCell;
}
@end
@implementation MWMBasePlacePageView (UITableView)
@ -239,11 +245,4 @@ static CGFloat const kTitleBottomOffset = 2.;
return cell;
}
- (MWMPlacePageBookmarkCell *)bookmarkSizingCell
{
if (!_bookmarkSizingCell)
_bookmarkSizingCell = [self.featureTable dequeueReusableCellWithIdentifier:kPlacePageBookmarkCellIdentifier];
return _bookmarkSizingCell;
}
@end