Type Method 型メソッド

fileURLWithPathComponents:

Initializes and returns a newly created NSURL object as a file URL with specified path components. 新しく作成されたNSURLオブジェクトをファイルURLとして初期化して返します、指定されたパス構成要素いくらかを持ちます。

Declaration 宣言

+ (NSURL *)fileURLWithPathComponents:(NSArray<NSString *> *)components;

Parameters パラメータ

components

An array of path components. パス構成要素それらからなるある配列。

Return Value 戻り値

An NSURL object initialized with components. あるNSURLオブジェクト、componentsで初期化されます。

Discussion 議論

The path components are separated by a forward slash in the returned URL. パス構成要素は、返されるURLにおいてフォワードスラッシュで隔てられます。

See Also 参照

Creating an NSURL Object NSURLオブジェクトを作成する