-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathWYBaseViewController.h
More file actions
40 lines (26 loc) · 1012 Bytes
/
WYBaseViewController.h
File metadata and controls
40 lines (26 loc) · 1012 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// WYBaseViewController.h
// BaseProject
//
// Created by 何长春 on 15/12/14.
// Copyright © 2015年 Serlight. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void(^CompletedBlock)();
@interface WYBaseViewController : UIViewController
@property (nonatomic, strong) UIViewController *rootViewController;
//获取app的root view Controller, 一般结构里面就是TabbarViewController;
- (UIViewController *)getCurrentRootViewController;
//当取消登陆的时候跳转到指定的页面
- (void)cancelLoginJumpToViewController:(CompletedBlock)completedBlock;
//显示hud
- (void)showHudOnView:(UIView *)view message:(NSString *)message;
- (void)showHudOnWindow:(UIWindow *)window message:(NSString *)message;
- (void)showInfoWithStatus:(NSString *)info;
- (void)showSuccessWithStatus:(NSString *)info;
- (void)showErrorWithStatus:(NSString *)info;
//close view controller
- (void)addCloseButtonToNavigationBar;
//add custome background button
- (void)addCustomeBackButton;
@end