OC 属性类型 strong or weak

OC 属性类型 strong or weak

Strong & Weak
通过拖拽的方式添加的控件,一般都使用Weak属性
-通过代码添加的对象(控件) ,多数使用Strong


如果通过拖拽方式添加的控件使用Strong类型,则Main.storyboard、
父View、当前View间会形成强持有关系,对象很难被释放掉。

修改时间

2019/06/21 16:45

Team Members:
friend

Comments (258)

Generic placeholder image
Jeremy Tomlinson
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
Generic placeholder image
Kathleen Thomas
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
Progress
Settings

Basic Settings


Recent Activity

You sold an item Paul Burgess just purchased “Hyper - Admin Dashboard”!

5 minutes ago

Product on the Bootstrap Market Dave Gamache added Admin Dashboard

30 minutes ago

Robert Delaney Send you message "Are you there?"

2 hours ago

Audrey Tobey Uploaded a photo "Error.jpg"

14 hours ago

You sold an item Paul Burgess just purchased “Hyper - Admin Dashboard”!

1 day ago