Let's say I have controller A and controller B.
In VC A, I press VC B. Then in VC B I do some background tasks using NSOperation. In background tasks, I change the variables of VC B.
What happens if the background tasks are not finished and I left VC B? Will the operations be canceled or will they be performed? When debugging, it seems like they are still running. In this case, they will not have access to already released variables (since I left VC B).
I'm a little confused by this, can anyone take me away? :)
Thank,
, , , , .
, . .
, , , VC B . NSOperation, main() isCancelled.
. Apple NSOperation, NSOperationQueues Concurrency .
VC-B . , , VC-B, VC-B, , VC-B . , ", " VC-B, , ; , , " /" ( " " ) . VC , .
( ), , ( , ) /...
:
VC , , , . ARC, , , VC .
concurrency, Grand Central Dispatch . , , , .