title: Why Does My UIScrollView/SubView Keep Showing Up When I Switch SKScenes?
body: <p>So I'm having a problem with my UIScrollView/Subview. Whenever I click the "back" button in my shop scene, it goes to the main menu but the scroll view is still there. How can I fix?</p>
  
  <p>Main Menu Screen Before Back Button is Clicked (<a href="https://i.stack.imgur.com/5yVyc.png" rel="nofollow noreferrer">https://i.stack.imgur.com/5yVyc.png</a>)</p>
  
  <p>Shop Scene With Back Button located in the bottom right
  (<a href="https://i.stack.imgur.com/Km3zi.png]" rel="nofollow noreferrer">https://i.stack.imgur.com/Km3zi.png]</a></p>
  
  <p>Main Menu Scene After Back Button is clicked
  (<a href="https://i.stack.imgur.com/IT6Q0.png" rel="nofollow noreferrer">https://i.stack.imgur.com/IT6Q0.png</a>)</p>
  
  <p>Code:</p>
  
  <pre><code>  var scrollView = UIScrollView()
    let frame = CGRect(x: 0, y: 0, width: self.frame.size.width, height: self.frame.size.height)
      scrollView = UIScrollView(frame: frame)
      scrollView.backgroundColor = UIColor.clear
      scrollView.contentSize = CGSize(width: self.frame.size.width, height: self.frame.size.height*4)
      scrollView.isPagingEnabled = false
     self.view?.addSubview(scrollView)
  </code></pre>
  
  <p>When I switch SKScenes the UIViews just stay there.</p>