What is the strong property attribute

前端 未结 3 2162
终归单人心
终归单人心 2020-12-12 20:27

I am using the Xcode beta for developers, and am noticing some subtle differences. Among them is a new attribute for declared properties.

@property(strong)IB         


        
3条回答
  •  余生分开走
    2020-12-12 20:44

    As we know, we cannot release any object in an ARC-based project in iOS 5. So when we want to retain any object for further use at a later stage and don't want ARC to remove the object from memory, then we set the property for the object as "Strong".

提交回复
热议问题