Home>

I'm trying to install and use the library at the URL below, but I am trying to imitate the DEMO and run it on my program because it doesn't work.
https://github.com/shin8484/PopupWindow

The DEMO is moving.
A part of the source of viewcontroller in DEMO is as follows.

import UIKit
import PopupWindow
class ViewController: UIViewController {
    @IBOutlet weak var tableView: UITableView!
    override func viewDidLoad () {
        super.viewDidLoad ()
        tableView.delegate = self
        tableView.dataSource = self
    }
    @available (iOS 11.0, *)
    override func viewSafeAreaInsetsDidChange () {
        super.viewSafeAreaInsetsDidChange ()
        tableView.contentInset.bottom = view.safeAreaInsets.bottom
        tableView.contentInset.top = view.safeAreaInsets.top
    }
}


I copied the DEMO viewcontrollerScene into the storyboard and wrote the same code as above to link the tableView to my code, but I got the following error.

import UIKit
import PopupWindow

class MainpageViewController: UIViewController {

    @IBOutlet weak var tableview: UITableView!

    override func viewDidLoad () {
        super.viewDidLoad ()
        tableView.delegate = self // Error Cannot assign value of type 'MainpageViewController' to type 'UITableViewDelegate?'
        tableView.dataSource = self // Error Cannot assign value of type 'MainpageViewController' to type 'UITableViewDataSource?'
        // Do any additional setup after loading the view.
    }
    @available (iOS 11.0, *)
    override func viewSafeAreaInsetsDidChange () {
        super.viewSafeAreaInsetsDidChange ()
        tableView.contentInset.bottom = view.safeAreaInsets.bottom // Error Use of unresolved identifier 'tableView'
        tableView.contentInset.top = view.safeAreaInsets.top // Error Use of unresolved identifier 'tableView'
    }
}

What does this mean?

------ This is a postscript ---------

I'm sorry. I was confused with uppercase and lowercase letters. . . Still, I can't get the error of the first two people ... what is the cause of this? . . ?