是“assign”默认设置的@property编译指令? [英] Is "assign" the default setup of the @property compiler directive?

查看:100
本文介绍了是“assign”默认设置的@property编译指令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我定义一个属性,只是做:

  @property(nonatomic)UIButton * button; 

那么我认为这是一个assign属性。是否正确?

解决方案

If I define an property and just do:

@property(nonatomic) UIButton* button;

then I think that it's an "assign" property. Is that correct?

解决方案

yes it is.

这篇关于是“assign”默认设置的@property编译指令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆