import UIKit import Firebase import SDWebImage import CoreMedia
class HomeViewController: UIViewController {
@IBOutlet weak var TableView: UITableView!
var posts = [Posts]()
var user = [User]()
var CURRENT_USER = Auth.auth().currentUser
override func viewDidLoad() {
super.viewDidLoad()
TableView.delegate = self
TableView.estimatedRowHeight = 521
TableView.rowHeight = UITableView.automaticDimension
TableView.dataSource = self
loadPosts()
}
CodePudding user response:
I think the issue is with your tableview reference with storyboard. can you please verify the tableview reference is correct. if the problem comes again just try delete the tableview reference from the storyboard to viewcontroller and please try to connect again.
the problem is storyboard can't find the tableview with name TableView
please try to delete the outlet connection and try to reconnect it
CodePudding user response:
Finally, The exception appearing because of inherit Module From Target box in the StoryBoard. Now I checked that box and the exception disappear.