dekatotoro/SlideMenuControllerSwift

In MainViewController TableView is nil

Opened this issue · 3 comments

I am new on Swift and iOS, i tried to integrate this SlideMenuController to my project but i take
"Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value" error while executing on MainViewController's viewDidLoad() class and also i couldn't get where the @IBOutlet weak var tableView: UITableView! value set in the code. As far as i understand from web it allows us to use weakly defined variable, which is inside of the class on storyboard, in viewDidLoad(). However, i can't access it although i create a UITableView in the UIViewController(MainViewController) in storyboard . Can someone please explain me ?

Note: I have also same issue in LeftViewController and RightViewController..

musy commented

i have same issue with you ...i tried to solve this error..

i solved this, you need to assign outlet delegate of table view from main storyboard to your swift file.

musy commented

ok..thanks @atatlisu