| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- //
- // PublicNoticeView.m
- // KulexiuForTeacher
- //
- // Created by 王智 on 2022/4/29.
- //
- #import "PublicNoticeView.h"
- @interface PublicNoticeView ()
- @property (nonatomic, copy) NoticeMoreCallback callback;
- @end
- @implementation PublicNoticeView
- + (instancetype)shareInstance {
- PublicNoticeView *view = [[[NSBundle mainBundle] loadNibNamed:@"PublicNoticeView" owner:nil options:nil] firstObject];
- return view;
- }
- - (void)moreCallback:(NoticeMoreCallback)callback {
- if (callback) {
- self.callback = callback;
- }
- }
- - (IBAction)moreAction:(id)sender {
- if (self.callback) {
- self.callback();
- }
- }
- + (CGFloat)getViewHeight {
- return 68.0f;
- }
- /*
- // Only override drawRect: if you perform custom drawing.
- // An empty implementation adversely affects performance during animation.
- - (void)drawRect:(CGRect)rect {
- // Drawing code
- }
- */
- @end
|