Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. func prepare(for segue: UIStoryboardSegue, sender: Any?) {
  2. let destinationVC = segue.destination as! AlbumSegue
  3. destinationVC.albumSongArray = selectedAlbumArray
  4. }
  5.  
  6.  
  7.  
  8. //Performe Segue
  9. performSegue(withIdentifier: "AlbumSegue", sender: self)
  10.  
  11. class AlbumSegue: UIViewController {
  12. var albumSongArray: [Array<String>] = [] // empty array to hold songs from album and file paths, etc
  13.  
  14.  
  15. override func viewDidLoad() {
  16. super.viewDidLoad()
  17. print("youve done it captain",albumSongArray)
  18.  
  19.  
  20. }
  21.  
  22. override func didReceiveMemoryWarning() {
  23. super.didReceiveMemoryWarning()
  24. // Dispose of any resources that can be recreated.
  25. }
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement