Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

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

share
    
Do you have close option on the view controller on which you are embedding this view controller? – iYoung 1 min ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.