iphone - NSSearchPathForDirectoriesInDomains trouble (losing hair fast) -
I'm getting very fast and need help!
I am writing an app that needs access to the directory. I use the user / mine / library / application support / iPhone simulator / user / application / 6958D21C-C94B-4843-9EEF 1-70406D.CA3A3 / document Was hoping to find the way.
However my app is giving me / user / me / library / app support / iphone simulator / user / document , which I do not want because there is no written access to it .
Here is a well-snatched version of my code. Note that you need to see the console in the simulator to see the output. I have examined all the references that I know and there is no success in changing behavior. Is this some compiler option? Or would you have to change me to Info.plist for some information? Anyone please ...
Update: My app is not being sandboxed due to some very strange reason. Why?
File DirTestAppDelegate.h
#import & lt; UIKit / UIKit.h & gt; @ Interface default app delete: NSobigant & lt; UIApplicationDelegate & gt; {UIWindow * window; } DirtyAppDelegate.m {NSArray * path = NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, yes); NSString * document directory = [path item overindexx: 0]; NSLog (documentsDirectory); } - (zero) Delok [[Super Delooc]]; } @end
This provisioning issue is not set correctly hours to decide Were taken :-(
Comments
Post a Comment