You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

65 lines
1.4 KiB

//
// XHBaseViewController.h
// MessageDisplayExample
//
// Created by HUAJIE-1 on 14-5-6.
// Copyright (c) 2014年 曾宪华 开发团队(http://iyilunba.com ) 本人QQ:543413507 本人QQ群(142557668). All rights reserved.
//
#import <UIKit/UIKit.h>
#import "baseViewController.h"
typedef void(^XHBarButtonItemActionBlock)(void);
typedef NS_ENUM(NSInteger, XHBarbuttonItemStyle) {
XHBarbuttonItemStyleSetting = 0,
XHBarbuttonItemStyleMore,
XHBarbuttonItemStyleCamera,
};
@interface XHBaseViewController : baseViewController
/**
* 统一设置背景图片
*
* @param backgroundImage 目标背景图片
*/
- (void)setupBackgroundImage:(UIImage *)backgroundImage;
/**
* push新的控制器到导航控制器
*
* @param newViewController 目标新的控制器对象
*/
- (void)pushNewViewController:(UIViewController *)newViewController;
/**
* 显示加载的loading,没有文字的
*/
- (void)showLoading;
/**
* 显示带有某个文本加载的loading
*
* @param text 目标文本
*/
- (void)showLoadingWithText:(NSString *)text;
- (void)showLoadingWithText:(NSString *)text onView:(UIView *)view;
/**
* 显示成功的HUD
*/
- (void)showSuccess;
/**
* 显示错误的HUD
*/
- (void)showError;
/**
* 隐藏在该View上的所有HUD,不管有哪些,都会全部被隐藏
*/
- (void)hideLoading;
- (void)configureBarbuttonItemStyle:(XHBarbuttonItemStyle)style action:(XHBarButtonItemActionBlock)action;
@end