mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
create folder on my iphone/ipad to store documents
This commit is contained in:
parent
a62b5b932c
commit
5f94b2295f
2 changed files with 10 additions and 1 deletions
|
|
@ -1029,8 +1029,15 @@ void on_chat_room_conference_alert(LinphoneChatRoom *cr, const LinphoneEventLog
|
|||
}
|
||||
|
||||
- (NSURL *)getICloudFileUrl:(NSString *)name {
|
||||
if (@available(iOS 11.0, *)) {
|
||||
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
|
||||
NSString *documentsPath = [paths objectAtIndex:0];
|
||||
NSURL *url = [NSURL fileURLWithPath:documentsPath];
|
||||
return [url URLByAppendingPathComponent:name];
|
||||
}
|
||||
|
||||
NSFileManager *fileManager = [NSFileManager defaultManager];
|
||||
NSURL *icloudPath = [[fileManager URLForUbiquityContainerIdentifier:nil]URLByAppendingPathComponent:@"Documents"];
|
||||
NSURL *icloudPath = [[fileManager URLForUbiquityContainerIdentifier:nil] URLByAppendingPathComponent:@"Documents"];
|
||||
|
||||
if (icloudPath) {
|
||||
if (![fileManager fileExistsAtPath:icloudPath.path isDirectory:nil]) {
|
||||
|
|
|
|||
|
|
@ -159,6 +159,8 @@
|
|||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
</array>
|
||||
<key>UISupportsDocumentBrowser</key>
|
||||
<true/>
|
||||
<key>UIViewControllerBasedStatusBarAppearance</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue