iOS Guides | Samples

MonoTouch.UIKit.UIImage.StretchableImage Method

Creates a stretchable image with the specified parameters. Deprecated in iOS 5, but still useful since the replacement is known to have bugs.

Syntax

[MonoTouch.Foundation.Export("stretchableImageWithLeftCapWidth:topCapHeight:")]
[MonoTouch.ObjCRuntime.ThreadSafe]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.TvOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIImage StretchableImage (Int32 leftCapWidth, Int32 topCapHeight)

Parameters

leftCapWidth
Width of the left cap to be left unscaled.
topCapHeight
Height tof the top cap to be left unscaled.

Returns

A stretchable image.

Remarks

The more versatile replacement method that was introduced in iOS 5 crashes under some conditions, for more information, see: http://openradar.appspot.com/11411000.

This can be used from a background thread.

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0