@@ -2400,29 +2400,25 @@ struct ArrayBuilder {
2400
2400
序列方法使用 ` warn_unqualified_access ` 特性声明,
2401
2401
以帮助减少在 ` Sequence ` 扩展中尝试使用其中一个或另一个时的混淆。
2402
2402
2403
- ### Declaration Attributes Used by Interface Builder
2403
+ ### Interface Builder 使用的声明特性
2404
2404
2405
- Interface Builder attributes are declaration attributes
2406
- used by Interface Builder to synchronize with Xcode.
2407
- Swift provides the following Interface Builder attributes:
2408
- ` IBAction ` , ` IBSegueAction ` , ` IBOutlet ` ,
2409
- ` IBDesignable ` , and ` IBInspectable ` .
2410
- These attributes are conceptually the same as their
2411
- Objective-C counterparts.
2405
+ Interface Builder 特性是用于 Interface Builder 的声明特性,
2406
+ 用于与 Xcode 同步。
2407
+ Swift 提供了以下 Interface Builder 特性:
2408
+ ` IBAction ` 、` IBSegueAction ` 、` IBOutlet ` 、
2409
+ ` IBDesignable ` 和 ` IBInspectable ` 。
2410
+ 这些特性在概念上与其 Objective-C 对应项相同。
2412
2411
2413
2412
<!--
2414
2413
TODO: Need to link to the relevant discussion of these attributes in Objc.
2415
2414
-->
2416
2415
2417
- You apply the ` IBOutlet ` and ` IBInspectable ` attributes
2418
- to property declarations of a class.
2419
- You apply the ` IBAction ` and ` IBSegueAction ` attribute
2420
- to method declarations of a class
2421
- and the ` IBDesignable ` attribute to class declarations.
2416
+ 您将 ` IBOutlet ` 和 ` IBInspectable ` 特性应用于类的属性声明。
2417
+ 您将 ` IBAction ` 和 ` IBSegueAction ` 特性应用于类的方法声明,
2418
+ 并将 ` IBDesignable ` 特性应用于类声明。
2422
2419
2423
- Applying the ` IBAction ` , ` IBSegueAction ` , ` IBOutlet ` ,
2424
- ` IBDesignable ` , or ` IBInspectable ` attribute
2425
- also implies the ` objc ` attribute.
2420
+ 应用 ` IBAction ` , ` IBSegueAction ` , ` IBOutlet ` ,
2421
+ ` IBDesignable ` , 或 ` IBInspectable ` 特性也意味着 ` objc ` 特性。
2426
2422
2427
2423
## Type Attributes
2428
2424
0 commit comments