NewGen

2019-03-15 XLSX File Open Document Based App 본문

IOS

2019-03-15 XLSX File Open Document Based App

Deep Learning 2019. 3. 15. 20:21



2019-03-15 XLSX File Open Document Based App .


  1. Create Document Based App.





2. Add 2 items on info.plist






3. Configuration “Document Type”

Types : org.openxmlformats.spreadsheetml.sheet






4.Build and Run.

-Test File Name is “js_test.xlsx” and enabled the file name.







5. When I did touch the file,


  1. called “didPickDocumentsAt” in DocumentBrowserViewController class.






b. called “presentDocument” in DocumentBrowserViewController class.


→ at that time, check the file path with print():






c. called “viewWillAppear” in DocumentViewController class.






d. called “load” in Document class.


e.  completed open the file in viewWillAppear.








f. summery steps of file open.




Comments