title: override func viewDidLoad
body: <p><strong>how can I fix this? tells me that viewDidLoad was declared 2 times but as I can unify the whole process ?</strong></p>
  
  <pre><code>import UIKit
  import MessageUI
  import CoreData
  import MediaPlayer
  import AVFoundation
  
  class ViewController: UIViewController, UISearchBarDelegate, MFMailComposeViewControllerDelegate, MPMediaPickerControllerDelegate, AVAudioPlayerDelegate {
          override func viewDidLoad() {
          super.viewDidLoad()
  
          title = "Media picker..."
  
          buttonPickAndPlay = UIButton.buttonWithType(.System) as? UIButton
  
          if let pickAndPlay = buttonPickAndPlay{
              pickAndPlay.frame = CGRect(x: 0, y: 0, width: 200, height: 37)
              pickAndPlay.center = CGPoint(x: view.center.x, y: view.center.y - 50)
              pickAndPlay.setTitle("Pick and Play", forState: .Normal)
              pickAndPlay.addTarget(self,
                  action: "displayMediaPickerAndPlayItem",
                  forControlEvents: .TouchUpInside)
              view.addSubview(pickAndPlay)
          }
  
          buttonStopPlaying = UIButton.buttonWithType(.System) as? UIButton
  
          if let stopPlaying = buttonStopPlaying{
              stopPlaying.frame = CGRect(x: 0, y: 0, width: 200, height: 37)
              stopPlaying.center = CGPoint(x: view.center.x, y: view.center.y + 50)
              stopPlaying.setTitle("Stop Playing", forState: .Normal)
              stopPlaying.addTarget(self,
                  action: "stopPlayingAudio",
                  forControlEvents: .TouchUpInside)
              view.addSubview(stopPlaying)
          }
      }
  
      @IBOutlet weak var Subject: UITextField!
  
  
      @IBOutlet weak var Body: UITextView!
  
      @IBOutlet weak var searchBar: UISearchBar!
  
      @IBOutlet weak var webView: UIWebView!
  
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
  
          searchBar?.delegate = self
  
          let url = NSURL(string: "http://www.google.com")
          let request = NSURLRequest(URL: url!)
  
          webView?.scalesPageToFit = true
          webView?.loadRequest(request)
  
      }
  </code></pre>
  
  <p>}</p>