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が「例外」マークで呼び出されると、例外がスローされます。
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException',
reason: 'closeWithCompletionHandler called while document is already closing'