class FirstClass: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
SecondClass()
}
}
class TableView: FirstClass {
var bodyTableView1: UITableView!
override init() {
super.init(nibName: nil, bundle: nil)
bodyTableView1 = UITableView(frame: CGRectMake(0, 0, 250, 250 ))
bodyTableView1.backgroundColor = UIColor.whiteColor()
self.view.addSubview(bodyTableView1)
}
}
I've tried many ways but managed not to add anything from the second class.
If you could give me an example of the most basic is the appreciate.
Thank you!
Pls Modify Your TableView Like Below:
And also add below code in FirstClass: