Skip to content

Instantly share code, notes, and snippets.

@DiganVaghasiya
Created October 23, 2020 11:22
Show Gist options
  • Select an option

  • Save DiganVaghasiya/217574bc02d497afcbdbc7a90999acdd to your computer and use it in GitHub Desktop.

Select an option

Save DiganVaghasiya/217574bc02d497afcbdbc7a90999acdd to your computer and use it in GitHub Desktop.
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