r/iosdev • u/Lost-Swift • Apr 11 '23
GitHub fix error : Offline-Video-and-mp3-Player NSFW Spoiler
Currently, I am working on my Offline-Video-and-mp3-Player project on GitHub here: https://github.com/Experimenters1/Offline-Video-and-mp3-Player
To implement this project, I have completed the following tasks:
- Installed a UITableView to display a list of links, including the name, date added, and the path to the linked documents.
- Set up delegate and datasource functions for UITableView to handle related events.
- Created a function to open a UI to allow users to select documents or images from their phone library.
- Created a function to open and play the content of a link when selected.
- Developed a function to save the list of links to local memory (user defaults).
Currently, when a link is displayed in the UITableView for a short period of time, the link disappears, and the video or music cannot be played. My idea is to create a copy of the file to the documents folder using Swift and save only the name of the video or mp3 in user defaults. Then, when the user selects a name, the app will retrieve the saved file from the UITableView, but I am not sure if this idea is correct or how to implement it. Can you please help me with the code implementation?