admin管理员组

文章数量:1530842

1.问题场景描述

在一个项目中有如下代码:

@property (nonatomic) UIColor *boundColor;

在XCode5.1.1中IDE给出了两个警告

No 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed

Default property attribute 'assign' not appropriate for non-GC object


2.原因分析


3.主要知识点


4.正确代码

本文标签: PropertyDefaultiosattributeobject