Files
comaps/iphone/Maps/UI/Editor/OpeningHours/Cells/MWMOpeningHoursTableViewCell.mm
Konstantin Pastbin aea784ddd7 [ios] Format all Obj C code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2025-08-17 16:37:15 +07:00

50 lines
851 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