Can anyone share some wisdom about the most conventional coding style to handle weak self in nested closure? For example:
parentClosure { [weak self] in
// ... assuming there is no use of self here
nestedClosure { [weak self] in
// ...
self?.doSomething()
}
}
The above for sure works I think. My question is do I have to declare unowned or weak in both parent and nested closures? Is it ok just do it in parent or child, only one of them?