|
@@ -11,7 +11,7 @@
|
|
|
#import "MainViewController.h"
|
|
#import "MainViewController.h"
|
|
|
#import "LoginViewController.h"
|
|
#import "LoginViewController.h"
|
|
|
#import "OLDataProvider.h"
|
|
#import "OLDataProvider.h"
|
|
|
-#import "SyncControlPanelViewController.h"
|
|
|
|
|
|
|
+//#import "SyncControlPanelViewController.h"
|
|
|
|
|
|
|
|
@interface OfflineSettingViewController ()
|
|
@interface OfflineSettingViewController ()
|
|
|
|
|
|
|
@@ -78,26 +78,26 @@
|
|
|
if(sender==nil)
|
|
if(sender==nil)
|
|
|
{
|
|
{
|
|
|
[appDelegate check_offline:ver useInternalAddress:self.switch_internal_address.isOn parentvc:self];
|
|
[appDelegate check_offline:ver useInternalAddress:self.switch_internal_address.isOn parentvc:self];
|
|
|
- SyncControlPanelViewController * syncVC =[ [UIStoryboard storyboardWithName:@"OLM" bundle:nil] instantiateViewControllerWithIdentifier:@"SyncControlPanelViewController"];
|
|
|
|
|
- syncVC.action_string=@"Download";
|
|
|
|
|
- UINavigationController* navi = [[UINavigationController alloc] initWithRootViewController:syncVC] ;
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- // [self hackModalSheetSize:CGSizeMake(450, 200) ofVC:navi];
|
|
|
|
|
-
|
|
|
|
|
- navi.modalPresentationStyle = UIModalTransitionStyleCrossDissolve;//有三种状态,自己看看是哪种
|
|
|
|
|
- [self presentViewController:navi animated:YES completion:^{
|
|
|
|
|
-
|
|
|
|
|
- // navi.view.superview.bounds = CGRectMake(0, 0, 480, 320);
|
|
|
|
|
-
|
|
|
|
|
- NSLog(@"about present.........");
|
|
|
|
|
-
|
|
|
|
|
- // self.btop = false;
|
|
|
|
|
- // <#code#>
|
|
|
|
|
- }];
|
|
|
|
|
|
|
+// SyncControlPanelViewController * syncVC =[ [UIStoryboard storyboardWithName:@"OLM" bundle:nil] instantiateViewControllerWithIdentifier:@"SyncControlPanelViewController"];
|
|
|
|
|
+// syncVC.action_string=@"Download";
|
|
|
|
|
+// UINavigationController* navi = [[UINavigationController alloc] initWithRootViewController:syncVC] ;
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+// // [self hackModalSheetSize:CGSizeMake(450, 200) ofVC:navi];
|
|
|
|
|
+//
|
|
|
|
|
+// navi.modalPresentationStyle = UIModalTransitionStyleCrossDissolve;//有三种状态,自己看看是哪种
|
|
|
|
|
+// [self presentViewController:navi animated:YES completion:^{
|
|
|
|
|
+//
|
|
|
|
|
+// // navi.view.superview.bounds = CGRectMake(0, 0, 480, 320);
|
|
|
|
|
+//
|
|
|
|
|
+// NSLog(@"about present.........");
|
|
|
|
|
+//
|
|
|
|
|
+// // self.btop = false;
|
|
|
|
|
+// // <#code#>
|
|
|
|
|
+// }];
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
@@ -109,26 +109,26 @@
|
|
|
[appDelegate check_offline:ver useInternalAddress:self.switch_internal_address.isOn parentvc:self];
|
|
[appDelegate check_offline:ver useInternalAddress:self.switch_internal_address.isOn parentvc:self];
|
|
|
|
|
|
|
|
|
|
|
|
|
- SyncControlPanelViewController * syncVC =[ [UIStoryboard storyboardWithName:@"OLM" bundle:nil] instantiateViewControllerWithIdentifier:@"SyncControlPanelViewController"];
|
|
|
|
|
- syncVC.action_string=@"Download";
|
|
|
|
|
- UINavigationController* navi = [[UINavigationController alloc] initWithRootViewController:syncVC] ;
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- // [self hackModalSheetSize:CGSizeMake(450, 200) ofVC:navi];
|
|
|
|
|
-
|
|
|
|
|
- navi.modalPresentationStyle = UIModalTransitionStyleCrossDissolve;//有三种状态,自己看看是哪种
|
|
|
|
|
- [self presentViewController:navi animated:YES completion:^{
|
|
|
|
|
-
|
|
|
|
|
- // navi.view.superview.bounds = CGRectMake(0, 0, 480, 320);
|
|
|
|
|
-
|
|
|
|
|
- NSLog(@"about present.........");
|
|
|
|
|
-
|
|
|
|
|
- // self.btop = false;
|
|
|
|
|
- // <#code#>
|
|
|
|
|
- }];
|
|
|
|
|
|
|
+// SyncControlPanelViewController * syncVC =[ [UIStoryboard storyboardWithName:@"OLM" bundle:nil] instantiateViewControllerWithIdentifier:@"SyncControlPanelViewController"];
|
|
|
|
|
+// syncVC.action_string=@"Download";
|
|
|
|
|
+// UINavigationController* navi = [[UINavigationController alloc] initWithRootViewController:syncVC] ;
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+// // [self hackModalSheetSize:CGSizeMake(450, 200) ofVC:navi];
|
|
|
|
|
+//
|
|
|
|
|
+// navi.modalPresentationStyle = UIModalTransitionStyleCrossDissolve;//有三种状态,自己看看是哪种
|
|
|
|
|
+// [self presentViewController:navi animated:YES completion:^{
|
|
|
|
|
+//
|
|
|
|
|
+// // navi.view.superview.bounds = CGRectMake(0, 0, 480, 320);
|
|
|
|
|
+//
|
|
|
|
|
+// NSLog(@"about present.........");
|
|
|
|
|
+//
|
|
|
|
|
+// // self.btop = false;
|
|
|
|
|
+// // <#code#>
|
|
|
|
|
+// }];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -191,26 +191,26 @@
|
|
|
if(sender==nil)
|
|
if(sender==nil)
|
|
|
{
|
|
{
|
|
|
[appDelegate check_offline:ver useInternalAddress:self.switch_internal_address.isOn parentvc:self];
|
|
[appDelegate check_offline:ver useInternalAddress:self.switch_internal_address.isOn parentvc:self];
|
|
|
- SyncControlPanelViewController * syncVC =[ [UIStoryboard storyboardWithName:@"OLM" bundle:nil] instantiateViewControllerWithIdentifier:@"SyncControlPanelViewController"];
|
|
|
|
|
- syncVC.action_string=@"Download";
|
|
|
|
|
- UINavigationController* navi = [[UINavigationController alloc] initWithRootViewController:syncVC] ;
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- // [self hackModalSheetSize:CGSizeMake(450, 200) ofVC:navi];
|
|
|
|
|
-
|
|
|
|
|
- navi.modalPresentationStyle = UIModalTransitionStyleCrossDissolve;//有三种状态,自己看看是哪种
|
|
|
|
|
- [self presentViewController:navi animated:YES completion:^{
|
|
|
|
|
-
|
|
|
|
|
- // navi.view.superview.bounds = CGRectMake(0, 0, 480, 320);
|
|
|
|
|
-
|
|
|
|
|
- NSLog(@"about present.........");
|
|
|
|
|
-
|
|
|
|
|
- // self.btop = false;
|
|
|
|
|
- // <#code#>
|
|
|
|
|
- }];
|
|
|
|
|
|
|
+// SyncControlPanelViewController * syncVC =[ [UIStoryboard storyboardWithName:@"OLM" bundle:nil] instantiateViewControllerWithIdentifier:@"SyncControlPanelViewController"];
|
|
|
|
|
+// syncVC.action_string=@"Download";
|
|
|
|
|
+// UINavigationController* navi = [[UINavigationController alloc] initWithRootViewController:syncVC] ;
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+//
|
|
|
|
|
+// // [self hackModalSheetSize:CGSizeMake(450, 200) ofVC:navi];
|
|
|
|
|
+//
|
|
|
|
|
+// navi.modalPresentationStyle = UIModalTransitionStyleCrossDissolve;//有三种状态,自己看看是哪种
|
|
|
|
|
+// [self presentViewController:navi animated:YES completion:^{
|
|
|
|
|
+//
|
|
|
|
|
+// // navi.view.superview.bounds = CGRectMake(0, 0, 480, 320);
|
|
|
|
|
+//
|
|
|
|
|
+// NSLog(@"about present.........");
|
|
|
|
|
+//
|
|
|
|
|
+// // self.btop = false;
|
|
|
|
|
+// // <#code#>
|
|
|
|
|
+// }];
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
@@ -222,26 +222,7 @@
|
|
|
[appDelegate check_offline:ver useInternalAddress:self.switch_internal_address.isOn parentvc:self];
|
|
[appDelegate check_offline:ver useInternalAddress:self.switch_internal_address.isOn parentvc:self];
|
|
|
|
|
|
|
|
|
|
|
|
|
- SyncControlPanelViewController * syncVC =[ [UIStoryboard storyboardWithName:@"OLM" bundle:nil] instantiateViewControllerWithIdentifier:@"SyncControlPanelViewController"];
|
|
|
|
|
- syncVC.action_string=@"Download";
|
|
|
|
|
- UINavigationController* navi = [[UINavigationController alloc] initWithRootViewController:syncVC] ;
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- // [self hackModalSheetSize:CGSizeMake(450, 200) ofVC:navi];
|
|
|
|
|
-
|
|
|
|
|
- navi.modalPresentationStyle = UIModalTransitionStyleCrossDissolve;//有三种状态,自己看看是哪种
|
|
|
|
|
- [self presentViewController:navi animated:YES completion:^{
|
|
|
|
|
-
|
|
|
|
|
- // navi.view.superview.bounds = CGRectMake(0, 0, 480, 320);
|
|
|
|
|
-
|
|
|
|
|
- NSLog(@"about present.........");
|
|
|
|
|
-
|
|
|
|
|
- // self.btop = false;
|
|
|
|
|
- // <#code#>
|
|
|
|
|
- }];
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
}];
|
|
}];
|