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.
ファイルが非表示かどうかを知る方法と、ファイルを非表示に設定する方法の 2 つの方法が必要です。開発者のドキュメントで回答が得られませんでした...
誰か?
どうもありがとう !ジェローム
「.」で始まるファイル デフォルトでは Finder で非表示になるため、ファイルがドットで始まるかどうかをテストできます。たとえば、次のようになります。
NSString* filename = //Something if([string hasPrefix:@"."]) { //The file is hidden }
ファイルを非表示にするには、名前の先頭にピリオドを追加してファイルの名前を変更します。