Reply:
iPhone undergrowth has directly open like Windows directory, iOS weakening file concept. But you still can traverse a particular directory under your App, then get inside the file you can simulate a file system in its own App.
/ / Gets the application sandbox Documents directory
NSArray * paths = NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, YES);
path = [paths objectAtIndex: 0];
Reply:
Or
[[NSBundle mainBundle] pathForResource: @ "filename" ofType: @ "fix"];
Reply:
Search the Internet for a long time, Ipad there does not seem to like Windows default of Expoloer tools installed, you must go to the Store to purchase. Development up very depressed ah.
Reply:
Simulated a file system, then how about the program can call the corresponding file in the file system to simulate the open? Please enlighten me
Reply:
In iOS, open the file normally in two ways:
1 of your own to add support for various types of files in the program, such as text word excel and so on. The more difficult. You think, ah, how can you write a word document parser in a very short time. iOS also has a ready-made, using UIWebView, this thing support word, excel, text, web pages, their own investigation documents.
2 opened by another program, this approach has many limitations, for non-cracked iOS, in theory, does not support calls to each other between the third-party app. communication between the app are strictly controlled by the system, a version of the ways is through the official iOS. So you want to open your documents via another app, you must also use iOS provides api, but also in another app info.plist inside the statement in support of the format, otherwise you are absolutely unable to call. Please refer UIDocumentInteractionController
No comments:
Post a Comment