IOSDEV Telegram 807
Вам не (всегда) нужно использовать [weak self]

Конечно, при некорректной работе с замыканиями могут возникать ошибки.

🛠 Например, это небольшое приложение демонстрирует различные сценарии утечки памяти, а также показывает, где использование [weak self] может быть излишним.

Одна из возможных ситуаций: у вас есть дочерний контроллер, который хранит ссылку на своего владельца/родителя в свойстве. Вот тогда свойство должно быть помечено weak, чтобы предотвратить циклическую ссылку/ретэйн цикл.

📖 В этой статье рассматриваются ключевые моменты на реальных примерах.

😃 iOS Dev — некоторые материалы лучше сохранить
Please open Telegram to view this post
VIEW IN TELEGRAM
👍295💯3🔥1👏1👨‍💻1



tgoop.com/iosdev/807
Create:
Last Update:

Вам не (всегда) нужно использовать [weak self]

Конечно, при некорректной работе с замыканиями могут возникать ошибки.

🛠 Например, это небольшое приложение демонстрирует различные сценарии утечки памяти, а также показывает, где использование [weak self] может быть излишним.

Одна из возможных ситуаций: у вас есть дочерний контроллер, который хранит ссылку на своего владельца/родителя в свойстве. Вот тогда свойство должно быть помечено weak, чтобы предотвратить циклическую ссылку/ретэйн цикл.

📖 В этой статье рассматриваются ключевые моменты на реальных примерах.

😃 iOS Dev — некоторые материалы лучше сохранить

BY iOS Dev




Share with your friend now:
tgoop.com/iosdev/807

View MORE
Open in Telegram


Telegram News

Date: |

How to Create a Private or Public Channel on Telegram? Members can post their voice notes of themselves screaming. Interestingly, the group doesn’t allow to post anything else which might lead to an instant ban. As of now, there are more than 330 members in the group. Select: Settings – Manage Channel – Administrators – Add administrator. From your list of subscribers, select the correct user. A new window will appear on the screen. Check the rights you’re willing to give to your administrator. Among the requests, the Brazilian electoral Court wanted to know if they could obtain data on the origins of malicious content posted on the platform. According to the TSE, this would enable the authorities to track false content and identify the user responsible for publishing it in the first place. In handing down the sentence yesterday, deputy judge Peter Hui Shiu-keung of the district court said that even if Ng did not post the messages, he cannot shirk responsibility as the owner and administrator of such a big group for allowing these messages that incite illegal behaviors to exist.
from us


Telegram iOS Dev
FROM American