12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- //
- // MyStyleNavView.m
- // KulexiuForTeacher
- //
- // Created by 王智 on 2022/9/6.
- //
- #import "MyStyleNavView.h"
- @interface MyStyleNavView ()
- @property (nonatomic, copy) MyStyleSaveCallback callback;
- @end
- @implementation MyStyleNavView
- + (instancetype)shareInstance {
- MyStyleNavView *view = [[[NSBundle mainBundle] loadNibNamed:@"MyStyleNavView" owner:nil options:nil] firstObject];
- return view;
- }
- - (void)saveStyleAction:(MyStyleSaveCallback)callback {
- if (callback) {
- self.callback = callback;
- }
- }
- - (IBAction)saveAction:(id)sender {
- if (self.callback) {
- self.callback(NO);
- }
- }
- - (IBAction)backAction:(id)sender {
- if (self.callback) {
- self.callback(YES);
- }
- }
- /*
- // Only override drawRect: if you perform custom drawing.
- // An empty implementation adversely affects performance during animation.
- - (void)drawRect:(CGRect)rect {
- // Drawing code
- }
- */
- @end
|