title: Display Alert in ScrollView with Swift
body: <p>I have this issue here.</p>
  
  <p>I got this class <code>public class ImageSlideshowItem: UIScrollView, UIScrollViewDelegate {</code> inside a library that i'm using.
  So i want to add an alertController inside the <code>scrollView</code> but I get an error using this code</p>
  
  <pre><code>func saveImage() {
  
       UIImageWriteToSavedPhotosAlbum(self.imageView.image!, self, "image:didFinishSavingWithError:contextInfo:", nil)
  }
  
  func image(image: UIImage!, didFinishSavingWithError error: NSError!, contextInfo: AnyObject!) {
      if (error != nil) {
          // Something wrong happened.
          print("not saved")
      } else {
          // Everything is alright.
          let alert = UIAlertController(title: "My Title", message: "This is my message.", preferredStyle: UIAlertControllerStyle.Alert)
  
          // add an action (button)
          alert.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.Default, handler: nil))
          var fullscree: FullScreenSlideshowViewController = FullScreenSlideshowViewController()
          // show the alert
          self.presentViewController(alert, animated: true, completion: nil)
  
      }
  }
  </code></pre>
  
  <p>And the error it this one.</p>
  
  <blockquote>
    <p>Value of type 'ImageSlideshowItem' has no member 'presentViewController'</p>
  </blockquote>
  
  <p>Any idea of how can I display the alert?</p>
  
  <p>Update:</p>
  
  <p>Here is the link of another class that i call ImageSlideshowItems</p>
  
  <p><a href="http://paste.ofcode.org/39HK25NjDQYS2PxQJF46Wbj" rel="nofollow">"ImageSlideshow"</a></p>
  
  <p>And here is the complete ImageSlideShowItem class</p>
  
  <p><a href="http://paste.ofcode.org/ks2YQNSUWPiXuBTaNFMzRC" rel="nofollow">"ImageSlideshowItems"</a></p>