|
|
@@ -30,7 +30,9 @@
|
|
|
UITableViewDelegate,
|
|
|
FBAPIManagerDelegate,
|
|
|
FBAPIManagerInterceptor,
|
|
|
-BPositionDataBoxDelegate
|
|
|
+BPositionDataBoxDelegate,
|
|
|
+UINavigationControllerDelegate,
|
|
|
+UIGestureRecognizerDelegate
|
|
|
>
|
|
|
|
|
|
@property (nonatomic, strong) UIButton *certificationBtn;
|
|
|
@@ -60,8 +62,9 @@ BPositionDataBoxDelegate
|
|
|
- (void)viewWillAppear:(BOOL)animated {
|
|
|
|
|
|
[super viewWillAppear:animated];
|
|
|
- [self.navigationController setNavigationBarHidden:NO animated:animated];
|
|
|
- [self hj_setupNavBar];
|
|
|
+ self.navigationController.delegate = self;
|
|
|
+ self.navigationController.interactivePopGestureRecognizer.delegate = self;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
- (void)viewDidLoad {
|
|
|
@@ -69,6 +72,7 @@ BPositionDataBoxDelegate
|
|
|
[super viewDidLoad];
|
|
|
|
|
|
self.navigationItem.title = @"职位";
|
|
|
+ [self hj_setupNavBar];
|
|
|
[self.authAPI start];
|
|
|
// 错误页面刷新事件
|
|
|
[self.view.errorView.refreshButton addTarget:self action:@selector(refreshButtonClicked:) forControlEvents:UIControlEventTouchUpInside];
|
|
|
@@ -79,6 +83,15 @@ BPositionDataBoxDelegate
|
|
|
|
|
|
}
|
|
|
|
|
|
+#pragma mark - 导航栏的代理
|
|
|
+
|
|
|
+- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated {
|
|
|
+ // 判断要显示的控制器是否是自己
|
|
|
+ // BOOL isPushSelfClass = [viewController isKindOfClass:[self class]];
|
|
|
+ [self.navigationController setNavigationBarHidden:NO animated:animated];
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
#pragma mark - event response
|
|
|
|
|
|
/* 发布职位成功回调 */
|