什么是目标C&为什么使用 [英] what is Synthesize in objective c & why use

查看:104
本文介绍了什么是目标C&为什么使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目标c中的合成器是什么,为什么使用它给出示例和说明

what is synthesizer in objective c and why it is use give example and explanation

推荐答案

Google是您的朋友:很好,经常拜访他.与在这里发布问题相比,他可以更快地回答问题.

很快的搜索就产生了将近50万次点击:
Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...

A very quick search gave nearly one and a half million hits: Google[^]

In future, please try to do at least basic research yourself, and not waste your time or ours.


synthesize指令会自动为您的属性添加获取器和设置器,因此您无需手动添加它们.
synthesize directive adds getters and setters for your properties automatically so you dont need to add them manually.


这篇关于什么是目标C&为什么使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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