Created
October 23, 2020 11:22
-
-
Save DiganVaghasiya/217574bc02d497afcbdbc7a90999acdd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func getpath()->String | |
| { | |
| let documentDirectory = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0] as String | |
| //give the name of the plist file with extension(.plist) | |
| let path = documentDirectory.appending("/EmoployeeData.plist") | |
| print(path) | |
| return path | |
| } | |
| view will appear ( ) | |
| override func viewWillAppear(_ animated: Bool) { | |
| GetHistoryData() | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment