Skip to content

Commit 4990d25

Browse files
author
garenwang
committed
修复demo
1 parent 7236f1f commit 4990d25

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

QCloudCOSXMLDemo/AppDelegate.m

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,20 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
8181
[self setupCOSXMLShareService];
8282
self.credentialFenceQueue = [QCloudCredentailFenceQueue new];
8383
self.credentialFenceQueue.delegate = self;
84-
84+
85+
[QCloudCOSXMLConfiguration sharedInstance].currentRegion = kRegion;
86+
QCloudServiceConfiguration* configuration = [[QCloudCOSXMLService defaultCOSXML].configuration copy];
87+
configuration.endpoint.regionName = kRegion;
88+
[QCloudCOSTransferMangerService registerCOSTransferMangerWithConfiguration:configuration withKey:kRegion];
89+
90+
[QCloudCOSXMLService registerCOSXMLWithConfiguration:configuration withKey:kRegion];
91+
8592
QCloudMyBucketListCtor * bucketList = [[QCloudMyBucketListCtor alloc]init];
8693
_window = [[UIWindow alloc]initWithFrame:SCREEN_FRAME];
8794
[_window makeKeyAndVisible];
8895
UINavigationController * navRoot = [[UINavigationController alloc]initWithRootViewController:bucketList];
8996
_window.rootViewController = navRoot;
90-
97+
9198
return YES;
9299
}
93100
//后台上传要实现该方法

0 commit comments

Comments
 (0)