//
//  CSAlertView.h
//  zhuxun
//
//  Created by JonathanH on 2017/7/20.
//
//
/**
 *  e.g initCSAlertView  showXBAlertView
 *    click cancle（removeAlertView delloc self）
 *    click comfirm   disable comfirmBtn start Animation at ActivityIndicatorView（）then callblock
 *
 */
#import <UIKit/UIKit.h>

typedef void(^AlertResult)(NSString *folderName);

@interface CSAlertView : UIView
/**
 *  确定按钮执行
 */
@property (nonatomic,copy) AlertResult alertresult;
/**
 *  <#Description#>
 *
 *  @param title       title
 *  @param message     message
 *  @param inputmode   YES/NO
 *  @param sureTitle   comfirmtitle
 *  @param cancleTitle cacletaitle
 *
 *  @return view remember showXBAlertView！
 */
- (instancetype)initWithTitle:(NSString *)title message:(NSString *)message inputMode:(BOOL)inputmode sureBtn:(NSString *)sureTitle cancleBtn:(NSString *)cancleTitle;

- (void)showXBAlertView;
/**
 *  comfirm sucess something stop & remove XBAlertView
 */
-(void)stopActityAndRemoveAlertView;
/**
 *  comfirm geterror
 *
 *  @param errormsg showerr at messagelabel(between title & buttons withRedTextColor)
 */
-(void)showErrorMsg:(NSString*)errormsg;

@end


