title: swift: Cannot override with a stored property 'tableView'
body: <p>I have the code below: </p>
  
  <pre><code>import UIKit
  
  class SearchTableViewController: UITableViewController, UISearchBarDelegate{
  
      final let urlString = "http://tvshowapi.azurewebsites.net/tvshownewsfeed"
  
      @IBOutlet var tableView: UITableView!
  
      var nameArray = [String]()
      var favouriteCountArray = [String]()
      var imgURLArray = [String]()
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          createSearchBar()
  
          self.downloadJsonWithURL()
  
      }
  
      func createSearchBar() {
          let searchBar = UISearchBar()
          searchBar.showsCancelButton = false
          searchBar.placeholder = "Search a show"
          searchBar.delegate = self
          searchBar.backgroundColor = UIColor.black
          searchBar.barTintColor = UIColor.black
          self.navigationItem.titleView = searchBar
          UITextField.appearance(whenContainedInInstancesOf: [UISearchBar.self]).backgroundColor = UIColor.black
  
          let searchTextField: UITextField? = searchBar.value(forKey: "searchField") as? UITextField
  
          searchTextField?.textAlignment = NSTextAlignment.left
      }
  
      func downloadJsonWithURL() {
          let url = NSURL(string: urlString)
          URLSession.shared.dataTask(with: (url as? URL)!, completionHandler: {(data, response, error) -&gt; Void in
              if let jsonObj = try? JSONSerialization.jsonObject(with: data!, options: .allowFragments) as? [[String:Any]] {
  
                  for tvshow in jsonObj! {
                      if let name = tvshow["screenName"] as? String {
                          self.nameArray.append(name)
                      }
                      if let cnt = tvshow["favouriteCount"] as? Int {
                          self.favouriteCountArray.append("\(cnt)")
                      }
                      if let image = tvshow["imageUrl"] as? String {
                          self.imgURLArray.append(image)
                      }
                  }
  
  
                  OperationQueue.main.addOperation({
                      self.tableView.reloadData()
                  })
              }
          }).resume()
      }
  
      func downloadJsonWithTask() {
  
          let url = NSURL(string: urlString)
  
          var downloadTask = URLRequest(url: (url as? URL)!, cachePolicy: URLRequest.CachePolicy.reloadIgnoringCacheData, timeoutInterval: 20)
  
          downloadTask.httpMethod = "GET"
  
          URLSession.shared.dataTask(with: downloadTask, completionHandler: {(data, response, error) -&gt; Void in
  
              let jsonData = try? JSONSerialization.jsonObject(with: data!, options: .allowFragments)
  
              print(jsonData!)
  
          }).resume()
      }
  
      override func didReceiveMemoryWarning() {
          super.didReceiveMemoryWarning()
          // Dispose of any resources that can be recreated.
      }
  
      // MARK: - Table view data source
  
      override func numberOfSections(in tableView: UITableView) -&gt; Int {
          // #warning Incomplete implementation, return the number of sections
          return 0
      }
  
      override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
          // #warning Incomplete implementation, return the number of rows
          return nameArray.count
      }
  
      override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
          let cell = tableView.dequeueReusableCell(withIdentifier: "cell") as! SearchTableViewCell
          cell.nameLabel.text = nameArray[indexPath.row]
          cell.dobLabel.text = favouriteCountArray[indexPath.row]
  
          let imgURL = NSURL(string: imgURLArray[indexPath.row])
  
          if imgURL != nil {
              let data = NSData(contentsOf: (imgURL as? URL)!)
              cell.imgView.image = UIImage(data: data as! Data)
          }
  
          return cell
      }
  
  
  }
  </code></pre>
  
  <p>I'm getting three errors by Xcode:</p>
  
  <ol>
  <li>Cannot override with a stored property 'tableView'</li>
  <li>Getter for 'tableView' with Objective-C selector 'tableView' conflicts with getter for 'tableView' from superclass 'UITableViewController' with the same Objective-C selector</li>
  <li>Setter for 'tableView' with Objective-C selector 'setTableView:' conflicts with setter for 'tableView' from superclass 'UITableViewController' with the same Objective-C selector</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/CmSm8.png" rel="nofollow noreferrer">SearchTableViewController</a>
  Following is the code for the TableViewCell</p>
  
  <pre><code>class SearchTableViewCell: UITableViewCell {
  
      @IBOutlet weak var imgView: UIImageView!
      @IBOutlet weak var nameLabel: UILabel!
      @IBOutlet weak var dobLabel: UILabel!
  
  
      override func awakeFromNib() {
          super.awakeFromNib()
          // Initialization code
      }
  
      override func setSelected(_ selected: Bool, animated: Bool) {
          super.setSelected(selected, animated: animated)
  
          // Configure the view for the selected state
      }
  
  }
  </code></pre>
  
  <p>What am I doing wrong?</p>