This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| import RxSwift | |
| import RxCocoa | |
| import MJRefresh | |
| public enum RefreshStatus { | |
| case none, begainHeaderRefresh, endHeaderRefresh | |
| case hiddendFooter, showFooter, endFooterRefresh, endFooterRefreshWithNoData | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extension UIPrintFormatter { | |
| func generateImage(at page: Int) -> UIImage? { | |
| let rect = rectForPage(at: page) | |
| UIGraphicsBeginImageContext(rect.size) | |
| draw(in: rect, forPageAt: page) | |
| let image = UIGraphicsGetImageFromCurrentImageContext() | |
| UIGraphicsEndImageContext() | |
| return image | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <UIKit/UIKit.h> | |
| NS_ASSUME_NONNULL_BEGI | |
| #define A4PaperWidth 595.2 | |
| #define A4PaperHeight 842. | |
| @interface UIImage (Extension) | |
| + (UIImage *)imageWithHTMLString:(NSString *)htmlString imageWidth:(CGFloat)imageWidth; |