co-maps/iphone/Maps/UI/Editor/Cells/MWMButtonCell.m

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
520 B
Mathematica
Raw Normal View History

2025-11-22 13:58:55 +01:00
#import "MWMButtonCell.h"
@interface MWMButtonCell ()
@property(nonatomic) IBOutlet UIButton *button;
@property(weak, nonatomic) id<MWMButtonCellDelegate> delegate;
@end
@implementation MWMButtonCell
- (void)configureWithDelegate:(id<MWMButtonCellDelegate>)delegate title:(NSString *)title enabled:(BOOL)enabled {
[self.button setTitle:title forState:UIControlStateNormal];
self.button.enabled = enabled;
self.delegate = delegate;
}
- (IBAction)buttonTap {
[self.delegate cellDidPressButton:self];
}
@end