forked from mirrors/linphone-iphone
diable Icloud Drive if ios 11 is available
This commit is contained in:
parent
e42f3bd63f
commit
dc1353ea65
1 changed files with 6 additions and 1 deletions
|
|
@ -1086,7 +1086,12 @@ void on_chat_room_conference_alert(LinphoneChatRoom *cr, const LinphoneEventLog
|
|||
|
||||
- (BOOL)writeFileInICloud:(NSData *)data fileURL:(NSURL *)fileURL {
|
||||
NSFileManager *fileManager = [NSFileManager defaultManager];
|
||||
if (![[fileManager URLForUbiquityContainerIdentifier:nil]URLByAppendingPathComponent:@"Documents"]) {
|
||||
BOOL useMyDevice = FALSE;
|
||||
if (@available(iOS 11.0, *)) {
|
||||
useMyDevice = TRUE;
|
||||
}
|
||||
|
||||
if (!useMyDevice && ![[fileManager URLForUbiquityContainerIdentifier:nil]URLByAppendingPathComponent:@"Documents"]) {
|
||||
//notify : set configuration to use icloud
|
||||
[[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Info", nil) message:NSLocalizedString(@"ICloud Drive is unavailable.", nil) delegate:nil cancelButtonTitle:NSLocalizedString(@"Cancel", nil) otherButtonTitles:nil, nil] show];
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue