I'm using a YTPlayer
view controller to play youtube videos in my app. When an instance is created, memory usage spikes up to 80 MB on the simulator. I expect it to go back to its normal value (35 MB) when the view is exited but it doesn't. All the other view controllers release memory when I exit them except this one.
I tried dismissing the view controller in viewWillDisappear
method but no success.
How can I fix this?