Instance Property インスタンスプロパティ

URLByDeletingLastPathComponent

A URL created by taking the receiver and removing the last path component. (read-only) レシーバをとってそして最後のパス構成要素を取り除くことによって作成されるURL。(読み出しのみ)

Declaration 宣言

@property(nullable, readonly, copy) NSURL *URLByDeletingLastPathComponent;

Discussion 議論

If the receiver’s URL represents the root path, this property contains a copy of the original URL. Otherwise, if the original URL has only one path component, this property contains the empty string. レシーバの持つURLがルートパスを表すならば、このプロパティは元のURLのコピーを含みます。そうでなければ、元のURLがただ1つのパス構成要素ならば、このプロパティは空文字列を含みます。

See Also 参照

Modifying and Converting a File URL ファイルURLを修正および変換する