You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used this function to unzip the zip,Why completionHandler always faster than progressHandler?
SSZipArchive.unzipFile(atPath: tempFileUrl, toDestination: uploadFilePath, overwrite: true, password: nil) { entry, zipInfo, entryNumber, total in
PTGCDManager.gcdMain {
PTNSLogConsole("\(entryNumber)\\\\\(total)")
self.progressView.progress = Float(entryNumber/total)
self.progressInfoLabel.text = "🗃️:\(entryNumber) / \(total)"
}
} completionHandler: { entry, finish, error in
if error != nil {
} else {
if finish {
}
}
}
The text was updated successfully, but these errors were encountered:
Coeur
changed the title
Hola,amigo,I find some problem in unzip function
Problem in unzip function: why completionHandler always faster than progressHandler?
Jul 22, 2023
I used this function to unzip the zip,Why completionHandler always faster than progressHandler?
The text was updated successfully, but these errors were encountered: