Когда UIDocument закрыт, может ли он снова закрыться? Даже если это documentState, UIDocumentStateNormal после повторного открытия?
Пожалуйста, помогите мне. Большое спасибо!
[document openWithCompletionHandler:^(BOOL success) {
if (success) {
[document closeWithCompletionHandler:^(BOOL success) {
if (success) {
[document openWithCompletionHandler:^(BOOL success) {
if (success) {
NSLog(@"%d", document.documentState);
//Exception
[document closeWithCompletionHandler:^(BOOL success) {
if (success) {
}
}];
}
}];
}
}];
}
}];
Когда closeWithCompletionHandler вызывается с отметкой «Exception», возникает исключение:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException',
reason: 'closeWithCompletionHandler called while document is already closing'