iboutlet
In this article, we’ll learn the difference between Strong
and Weak
outlets and will remove any confusion on when to use which.
在本文中,我们将了解“ Strong
和“ Weak
网点之间的区别,并将消除对何时使用它们的困惑。
介绍 (Intro)
If you ever needed to connect your UIView
from storyboard via drag and drop, then this dialog should be very familiar to you:
如果您需要通过拖放从故事板上连接UIView
,那么您应该对这个对话框非常熟悉:
![Image for post](https://miro.medium.com/max/9999/1*vUryHtwPEgi9H8IPa1TOFQ.png)
At the bottom, we see a window allowing us to choose whether we want a Strong
or Weak
storage type. Why do we need it?
在底部,我们看到一个窗口,允许我们选择是St