Hi!
I got confused while I am trying to achieve showing a xib or storyboard view inside of a xib view.
I have a table filled with ViewCell xibs and every one of them has buttons for playing podcasts.
When the user clicks the "play button", I want to show a full-screen player view top of the screen, like an alert notification with a close button, play button, volume slider, etc.
If I create and show the player view inside of the cell xib, it only shows up to the size of a cell. I want to show the player view full-screen.
Thus, I created another xib file and put the play button, volume slider, etc. in that file.
But I can't call or show the player view xib from the table cell xib.
How can I achieve this? How do I reach another xib file inside of a xib file?
I tried this :
But couldn't get any value from this for now.
Also, do you suggest using a storyboard view for showing it in xib? If so, I could use storyboard view too but I still need help calling it.
I got confused while I am trying to achieve showing a xib or storyboard view inside of a xib view.
I have a table filled with ViewCell xibs and every one of them has buttons for playing podcasts.
When the user clicks the "play button", I want to show a full-screen player view top of the screen, like an alert notification with a close button, play button, volume slider, etc.
If I create and show the player view inside of the cell xib, it only shows up to the size of a cell. I want to show the player view full-screen.
Thus, I created another xib file and put the play button, volume slider, etc. in that file.
But I can't call or show the player view xib from the table cell xib.
How can I achieve this? How do I reach another xib file inside of a xib file?
I tried this :
Code Block swift let podcastViewCell = (UINib(nibName: "PodcastViewCell", bundle: nil), forCellWithReuseIdentifier: "PodcastViewCell")
But couldn't get any value from this for now.
Also, do you suggest using a storyboard view for showing it in xib? If so, I could use storyboard view too but I still need help calling it.