func coerceValue (Any, to: AnyClass) -> Any?
Returns an object of a given class representing a given value.
与えられたクラスのひとつのオブジェクトを返します、それは与えられた値を表しています。
Availability 有効性
Technology
coercer
The object that performs the coercion. coercer
should typically be a class object.
強制を実行するオブジェクト。coercer
は、一般的にクラスオブジェクトであるべきです。
selector
A selector that specifies the method to perform the coercion. selector
should typically be a factory method, and must take two arguments. The first is the value to be converted. The second is the class to convert it to.
強制を実行するためのメソッドを指定するセレクタ。selector
は、一般的にファクトリメソッドであるべきです、そして2つの引数を取らなければなりません。最初のものは、変換されることになる値です。2番目のものは、それへと変換することになるクラス。
fromClass
The class for which instances are coerced. このクラスに対してインスタンスが強制されます。
toClass
The class to which instances of from
are coerced.
このクラスへとfrom
のインスタンスは強制されます。
func coerceValue (Any, to: AnyClass) -> Any?