Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
sites/default/files/iPad にファイルを保存するには、次のパス文字列でファイル名の部分文字列 ( の後) を取得する必要があります。
sites/default/files/
sites/default/files/243347_TroubleShootingSqlserver20052008.pdf
どうすればいいですか?
パスを設定してNSURL *targetURL.から
NSURL *targetURL.
NSString *filename = [[targetURL path] lastPathComponent];
NSArray* pathURL = [path componentsSeparatedByString: @"/"]; NSString* pdfFileName = [pathURL objectAtIndex: [pathURL length]];