macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

movePath:toPath:handler:

指定したパスのファイルを指定した宛先に移動します
-(BOOL)movePath:(NSString *)source:
             toPath:(NSString *)destination:
             handler:()handler:

解説

指定したパス(source)のファイルを指定した宛先(destination)に移動します。

返り値

( BOOL )

YES/NO

引数

( NSString * )source

ソース

( NSString * )destination

宛先

(  )handler

ハンドラ

クラス

NSFileManager

Instance Methods

使用可能

10.0

参照

- copyPath:toPath:handler:
- linkPath:toPath:handler:
- removeFileAtPath:handler:
- fileManager:shouldProceedAfterError:
- fileManager:willProcessPath:

例文

[fileManager movePath:intermediateFileNameToSave toPath:backupFileName handler:nil]