Skip to content

Files

Latest commit

de631bb · Jun 28, 2016

History

History
54 lines (47 loc) · 1.93 KB

README.md

File metadata and controls

54 lines (47 loc) · 1.93 KB

PlaceholderView

在任何视图上添加默认视图

用法


/**
 *  功能:添加默认视图
 *
 *  @param title            title
 *  @param subTitle         subTitle
 *  @param tapButtonBgImage tapButtonBgImage
 *  @param tapButtonTitle   tapButtonTitle
 *  @param placeholderImage placeholderImage
 *  @param view             被添加的View
 *  @param tapButtonBlock   点击按钮的回调
 */
- (void)showPlaceholderViewTitle:(nullable NSString *)title
                        subTitle:(nullable NSString *)subTitle
                tapButtonBgImage:(nullable UIImage *)tapButtonBgImage
                  tapButtonTitle:(nullable NSString *)tapButtonTitle
                placeholderImage:(nullable UIImage *)placeholderImage
                          inView:(nullable UIView *)view
                  tapButtonBlock:(void(^)(void))tapButtonBlock;

/**
 *  功能:添加默认视图
 *
 *  @param title            title
 *  @param subTitle         subTitle
 *  @param placeholderImage placeholderImage
 *  @param view             被添加的View
 */

- (void)showPlaceholderViewTitle:(nullable NSString *)title
                        subTitle:(nullable NSString *)subTitle
                placeholderImage:(nullable UIImage *)placeholderImage
                          inView:(nullable UIView *)view;

/**
 *  功能:隐藏加载失败的View
 *
 *  @param view 被添加的View
 */
- (void)hidePlaceholderViewFromView:(nullable UIView *)view;

效果图