UIView.ContentStretch 属性

定义

开发人员不应使用此已弃用的属性。 开发人员应改用“CreateResizableImage”。

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'CreateResizableImage' instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual CoreGraphics.CGRect ContentStretch { [Foundation.Export("contentStretch")] [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'CreateResizableImage' instead.")] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] get; [Foundation.Export("setContentStretch:")] [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'CreateResizableImage' instead.")] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] set; }
member this.ContentStretch : CoreGraphics.CGRect with get, set

属性值

属性

注解

iOS 6.0 中已弃用此属性。 建议开发人员改用具有可拉伸 UIImage 的 UIImageView。

适用于