什么时候应该使用@property? [英] When should i use a @property?

查看:193
本文介绍了什么时候应该使用@property?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我声明一个类的对象,应该使用alloc和init和什么时候应该给@属性指令。在什么情况下,我需要使用them.the属性指令也是bit confusing.need帮助.. ....

When i declare a object for a class,when should i use alloc and init and when should i give the @ property directive.under what situations i need to use them.the property directives are also bit confusing.need help......

推荐答案

您已阅读编程指南?或任何其他文档?

Have you read the Programming Guide? or any other documentation?

我不是粗鲁,但试图扫描文档,然后在这里提出问题不会让你远远达到阅读在潜水之前仔细阅读文档并尝试编写应用程序。

I'm not being rude, but trying to skim the docs and then asking questions here isn't going to get you as far as reading the documentation carefully before diving in and trying to write apps.

这篇关于什么时候应该使用@property?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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