![](/img/trans.png)
[英]How can I programmatically determine if my app is running in the iphone simulator?
[英]How can I find my app files under iPhone Simulator folder?
如何輕松訪問我正在處理的應用程序的文件夾。
iPhone Simulator目錄下有太多應用程序文件夾,如何訪問任何特定文件夾?
你可以以編程方式執行此操作:
NSLog(@"%@",[[NSBundle mainBundle] bundlePath]);
我知道2個很棒的mac應用程序可以解決你的問題:
您可以使用OpenSim作為上述替代工具。
在這里,您可以看到您的應用程序名稱,然后您可以輕松找到它。所以嘗試實現這一點。
NSString *path = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
NSLog(@"Path %@",path);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.