12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- //
- // UIView+PlaceHolder.h
- // Template
- //
- // Created by LStar on 2019/3/18.
- // Copyright © 2019 Future. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- @interface PlaceHolderView : UIView
- @property (nonatomic, strong, readonly) UIImageView *imageView;
- @property (nonatomic, strong, readonly) UILabel *titleLabel;
- @property (nonatomic, strong, readonly) UIButton *button;
- - (void)setTopSpacing:(CGFloat)spacing;
- @end
- @interface UIView (PlaceHolder)
- @property(nonatomic,strong)PlaceHolderView *placeHolderView;
- - (void)hidePlaceHolder;
- - (void)showHint:(NSString *)hint;
- - (void)showNoData;
- - (void)showHint:(NSString *)hint andPlaceHolderImage:(UIImage *)holderImage;
- - (void)showHint:(NSString *)hint andPlaceHolderImage:(UIImage *)holderImage refreshButtonText:(NSString *)buttonText refreshAction:(void(^)(void))refreshAction;
- @end
|