The current needs are, how to access the directory location of the application, and traverse one of these specified folder I get all the txt files in the folder path is stored in an array.
First, the debugging emulator how to achieve? If these txt file I want to own some of the, then, should be placed in what position Mac OS X system? Windows developers have done before, it can be stored in a directory exe program, such as Debug directory.
Thank you, not enough points, I'll start a topic
Reply:
Reply:
First, you can only access your app sandbox directory.
To traverse, then you will need to write your own recursive algorithm [[NSFileManager defaultManager] contentsOfDirectoryAtPath: <# (NSString *) #> error: <# (NSError **) #>]. This method can get below the specified path content.
You can click on engineering products inside out compilation. App file, right click and choose show in finder. You can find the location of the app. Then you can display the contents of the package, you can see things inside the sandbox.
Reply:
You can not select gray
Reply:
Come to learn.
Reply:
Gray??? Do not know this and I also a rookie. Recruits less than a year ....
Reply:
You have to bring their own resource files, such as txt, mp3 went inside the trailer project. You can only access the program following several directories. Which do not remember specifically. You can look at Baidu. Then you can use nslog output you access to the directory, to see to it inside the mac address. And the app seems to be okay.
Reply:
Suddenly, the first problem is solved, I opened a message, http://topic.csdn.net/u/20120705/16/f65aef20-e8a9-4e42-9ecc-03f7b15d4301.html , you can get 100 points
No comments:
Post a Comment