New file |
| | |
| | | // |
| | | // LMJAutoRefreshFooter.m |
| | | // PLMMPRJK |
| | | // |
| | | // Created by windshan on 2017/4/11. |
| | | // Copyright © 2017年 GoMePrjk. All rights reserved. |
| | | // |
| | | |
| | | #import "LMJAutoRefreshFooter.h" |
| | | |
| | | @implementation LMJAutoRefreshFooter |
| | | |
| | | - (instancetype)initWithFrame:(CGRect)frame |
| | | { |
| | | if (self = [super initWithFrame:frame]) { |
| | | [self setupUIOnce]; |
| | | } |
| | | return self; |
| | | } |
| | | |
| | | - (void)awakeFromNib |
| | | { |
| | | [super awakeFromNib]; |
| | | [self setupUIOnce]; |
| | | } |
| | | |
| | | - (void)setupUIOnce |
| | | { |
| | | self.automaticallyChangeAlpha = YES; |
| | | } |
| | | |
| | | // MJBug fix |
| | | - (void)endRefreshing { |
| | | [super endRefreshing]; |
| | | self.state = MJRefreshStateIdle; |
| | | } |
| | | |
| | | - (void)layoutSubviews |
| | | { |
| | | [super layoutSubviews]; |
| | | } |
| | | |
| | | @end |