Files
MonsterCards/MonsterCards/Views/FormFields/MCIntegerFieldTableViewCell.h
Tom Hicks 1ecd4a4327 Adds a label to the integer form field.
Makes the string value and both string and integer label update the underlying controls when set.
2020-09-18 00:47:48 -07:00

29 lines
705 B
Objective-C

//
// MCIntegerFieldTableViewCell.h
// MonsterCards
//
// Created by Tom Hicks on 9/17/20.
// Copyright © 2020 Tom Hicks. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MCFormFieldDelegate.h"
NS_ASSUME_NONNULL_BEGIN
@interface MCIntegerFieldTableViewCell : UITableViewCell <UITextFieldDelegate>
@property NSString* identifier;
@property NSString* label;
@property int value;
@property (weak, nonatomic) id<MCFormFieldDelegate> delegate;
@property (weak, nonatomic) IBOutlet UITextField *textField;
@property (weak, nonatomic) IBOutlet UIStepper *stepper;
@property (weak, nonatomic) IBOutlet UILabel *labelView;
- (IBAction)stepperValueChanged:(id)sender;
@end
NS_ASSUME_NONNULL_END