0
대기열로 전달되는 매개 변수의 호 유지 정책이란 무엇입니까?블록 및 매개 변수 유지
이- (void)doSomethingWithDictionary:(NSDictionary *)dictionary {
// Do some stuff here
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{
// If I use the dictionary parameter in the queue, what's the retain cycle on in it with arc?
});
}
그리기 그래프를 펜과 종이를 사용하여 그리기를하면 그주기가 있는지 알 수 있습니다. 이 경우에는 괜찮습니다. –
블록을 사용하는 동안 블록은 블록이있는 중괄호 안에 위 선언을 모두 복사합니다. – Alfa