Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func prepare(for segue: UIStoryboardSegue, sender: Any?) {
- let destinationVC = segue.destination as! AlbumSegue
- destinationVC.albumSongArray = selectedAlbumArray
- }
- //Performe Segue
- performSegue(withIdentifier: "AlbumSegue", sender: self)
- class AlbumSegue: UIViewController {
- var albumSongArray: [Array<String>] = [] // empty array to hold songs from album and file paths, etc
- override func viewDidLoad() {
- super.viewDidLoad()
- print("youve done it captain",albumSongArray)
- }
- override func didReceiveMemoryWarning() {
- super.didReceiveMemoryWarning()
- // Dispose of any resources that can be recreated.
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement