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