iOS資料夾與plist檔案的建立與刪除

2021-07-11 01:54:49 字數 677 閱讀 1105

因為自己總是忘記這幾條語句,所以儲存起來以免下次再翻以前的**,注釋寫的很清楚,直接上**了呦~

//

// viewcontroller.m

// filemanagerexe

//// created by a111 on 16/4/8.

//#import "viewcontroller.h"

@inte***ce viewcontroller ()

@end

@implementation viewcontroller

- (void)viewdidload else

//在目錄資料夾下找相應檔案'bbb.plist'

if (![filemanager fileexistsatpath:filename]) ;//(內容隨便寫的)

[dic writetofile:filename atomically:yes];

}else

// do any additional setup after loading the view, typically from a nib.

}- (void)didreceivememorywarning

@end

內容很簡單,但是很易忘。

感謝**,學以致用更感謝。

檔案與資料夾

建立資料夾 nsstring imagedir nsstring stringwithformat caches nshomedirectory dirname bool isdir no nsfilemanager filemanager nsfilemanager defaultmanager ...

assets資料夾與static資料夾的區別

assets資料夾與static資料夾的區別 原位址 相同點 assets資料夾和static資料夾在vue cli生成的專案中,都是用來存放靜態資源的。不同點 assets目錄中的檔案會被webpack處理解析為模組依賴,只支援相對路徑形式 build的時候由webpack解析為模組依賴。stat...

資料夾的位置 檔案與資料夾管理操作

檔案與資料夾管理操作 1資源管理 資源管理器 windows資源管理器以資料夾瀏覽視窗形式顯示計算機資源,顯示計算機上的檔案 資料夾和驅動器的分層結構,同時顯示對映到計算機上的驅動器號的所有網路驅動器名稱。檔案和資料夾管理操作1 認識 計算機 雙擊桌面 計算機 圖示後進入以下視窗 2 檔案和資料夾的...