|
@@ -52,6 +52,8 @@
|
|
|
{
|
|
|
if (self = [super initWithCoder:aDecoder]) {
|
|
|
|
|
|
+ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(triggerProgressTask:) name:@"NotificationProgressTask" object:nil];
|
|
|
+
|
|
|
app.activeOffline = self;
|
|
|
}
|
|
|
return self;
|
|
@@ -116,6 +118,17 @@
|
|
|
[app plusButtonVisibile:true];
|
|
|
}
|
|
|
|
|
|
+- (void)triggerProgressTask:(NSNotification *)notification
|
|
|
+{
|
|
|
+ NSDictionary *dict = notification.userInfo;
|
|
|
+ float progress = [[dict valueForKey:@"progress"] floatValue];
|
|
|
+
|
|
|
+ if (progress == 0)
|
|
|
+ [self.navigationController cancelCCProgress];
|
|
|
+ else
|
|
|
+ [self.navigationController setCCProgressPercentage:progress*100 andTintColor:COLOR_NAVIGATIONBAR_PROGRESS];
|
|
|
+}
|
|
|
+
|
|
|
#pragma --------------------------------------------------------------------------------------------
|
|
|
#pragma mark ===== Page =====
|
|
|
#pragma --------------------------------------------------------------------------------------------
|