本文主要是介绍IT English Collection(15)of Outlet,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1 前言
本文是介绍有关Outlet的文章,详情如下。
转载请注明出处:http://blog.csdn.net/developer_zhang
2 详述
2.1 原文
An outlet is a property that isannotated with the symbol IBOutlet and whose value you can set graphically in a nib file or a storyboard. You declare an outlet in the interface of a class, and you make a connection between the outlet and another object in the nib file or storyboard. When the file is loaded, the connection is established.
You define an outlet as a property with the type qualifier of IBOutlet.
@property (nonatomic, weak) IBOutlet UITextField *nameField;
The symbol IBOutlet is used only by Xcode, to determine when a property is an outlet; it has noactual value.Through an outlet, an object in your code can obtain a reference to an object defined in a nib file or storyboard and then loaded from that file. The objectcontaining an outlet is often a custom controller object such as a view controller. You frequently define outlets so that you can send messages to view objects of the UIKit framework (in iOS) and the AppKit framework (in OS X).
2.2 生词
annotated['ænə,teɪtɪd] adj. 有注释的;带注解的
symbol['sɪmb(ə)l] n. 象征;符号;标志
graphically['græfikəli] adv. 生动地;活灵活现地
established[ɪ'stæblɪʃt] adj. 确定的;已制定的
qualifier['kwɒlɪfaɪə(r)] n. 限定词,[语]限定语
determine[dɪ'tɜːmɪn] vt. 决定;判决;
actual['æktʃʊəl; -tjʊəl] adj. 真实的,实际的
obtain[əb'teɪn] vi. 获得;流行
contain[kən'teɪn] vt. 包含;控制
3 结语
以上是所有内容,希望对大家有所帮助。
这篇关于IT English Collection(15)of Outlet的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!