setDestination:allowOverwrite:
ダウンロード先をセットします
-(void)setDestination:(NSString *)path: allowOverwrite:(BOOL)allowOverwrite:
解説
ダウンロード先をセットします。
返り値
( void )
なし
引数
( NSString * )path
( BOOL )allowOverwrite
フレームワーク
Foundation
クラス
NSURLDownload
Instance Methods
使用可能
10.2.7(10.2+safari)
参照
-download:decideDestinationWithSuggestedFilename:
-download:didCreateDestination:
例文
//デスクトップに NSString *path = [[NSHomeDirectory() stringByAppendingPathComponent:@"Desktop"] stringByAppendingPathComponent:filename]; [download setDestination:path allowOverwrite:NO];