[oqlMyOperationQueue cancelAllOperations];
PO([oqlMyOperationQueue operations]);
我仍然在那里看到一堆操作。
2013-05-06 16:05:38.559 [oqlMyOperationQueue operations]: (
"<NSBlockOperation: 0x20222730>",
"<NSBlockOperation: 0x2041f7a0>",
"<NSBlockOperation: 0x20450830>",
"<NSBlockOperation: 0x20417bf0>",
"<NSBlockOperation: 0x2006d510>",
"<NSBlockOperation: 0x2000d150>",
"<NSBlockOperation: 0x20379810>",
"<NSBlockOperation: 0x2021f8f0>",
"<NSBlockOperation: 0x2045dca0>",
"<NSBlockOperation: 0x2024c670>",
"<NSBlockOperation: 0x2041b8e0>",
"<NSBlockOperation: 0x203d54a0>",
"<NSBlockOperation: 0x20442c80>",
"<NSBlockOperation: 0x20452930>",
"<NSBlockOperation: 0x20363af0>"
)
但是我已经取消了所有的操作。所以有什么问题?
好的,我知道如果一个操作已经在执行,它将保留在队列中。但是为什么剩下这么多?队列是串行的。