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.

66 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