Files
comaps/iphone/Maps/UI/Editor/OpeningHours/Cells/MWMOpeningHoursTableViewCell.mm
Konstantin Pastbin e3e4a1985a Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run:
  git remote add om-historic [om-historic.git repo url]
  git fetch --tags om-historic
  git replace squashed-history historic-commits
2025-05-08 21:10:51 +07:00

52 lines
853 B
Plaintext

#import "MWMOpeningHoursTableViewCell.h"
@implementation MWMOpeningHoursTableViewCell
+ (CGFloat)heightForWidth:(CGFloat)width
{
return 0.0;
}
- (void)setHighlighted:(BOOL)highlighted animated:(BOOL)animated
{
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
}
- (void)hide
{
self.alpha = 0.0;
}
- (void)refresh
{
self.alpha = 1.0;
}
#pragma mark - Properties
- (void)setSection:(MWMOpeningHoursSection *)section
{
_section = section;
[self refresh];
}
- (NSUInteger)row
{
UITableView * tableView = self.section.delegate.tableView;
NSIndexPath * indexPath = [tableView indexPathForCell:self];
if (!indexPath)
indexPath = self.indexPathAtInit;
return indexPath.row;
}
- (BOOL)isVisible
{
UITableView * tableView = self.section.delegate.tableView;
return [tableView indexPathForCell:self] != nil;
}
@end