|
@@ -31,8 +31,6 @@
|
|
|
|
|
|
@property (nonatomic, strong) CourseDescAlertView *tipsAlert;
|
|
|
|
|
|
-//@property (no)
|
|
|
-
|
|
|
@end
|
|
|
|
|
|
@implementation HomeArrangeCourseController
|
|
@@ -95,6 +93,9 @@
|
|
|
|
|
|
- (void)displayWithIndex:(DISPLAY_INDEX)displayIndex {
|
|
|
self.displayIndex = displayIndex;
|
|
|
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.3f * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
+ [self showTipsAlert:self.displayIndex];
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
- (void)viewWillAppear:(BOOL)animated {
|
|
@@ -150,7 +151,6 @@
|
|
|
- (void)viewDidAppear:(BOOL)animated {
|
|
|
[super viewDidAppear:animated];
|
|
|
self.navigationController.interactivePopGestureRecognizer.enabled = (self.categoryView.selectedIndex == 0);
|
|
|
- [self showTipsAlert];
|
|
|
}
|
|
|
|
|
|
- (JXPagerView *)preferredPagingView {
|
|
@@ -283,18 +283,19 @@
|
|
|
[self backAction];
|
|
|
}
|
|
|
else {
|
|
|
- [self showTipsAlert];
|
|
|
+ [self showTipsAlert:self.categoryView.selectedIndex];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-- (void)showTipsAlert {
|
|
|
- [self.tipsAlert displayCourseTypeIndex:self.categoryView.selectedIndex];
|
|
|
+- (void)showTipsAlert:(NSInteger)displayIndex {
|
|
|
+ [self.tipsAlert displayCourseTypeIndex:displayIndex];
|
|
|
[self.tipsAlert showInView:[NSObject getKeyWindow]];
|
|
|
}
|
|
|
|
|
|
- (CourseDescAlertView *)tipsAlert {
|
|
|
if (!_tipsAlert) {
|
|
|
_tipsAlert = [CourseDescAlertView sharedInstance];
|
|
|
+ [_tipsAlert refreshView];
|
|
|
}
|
|
|
return _tipsAlert;
|
|
|
}
|