Monday 15 September 2014

ios - Init viewcontroller in app delegate, including tableview delegates -


I have a view controller class in your application:

  class ViewController: UIViewController, UITableViewDataSource , UITableViewDelegate {@Iboutlet weak var usersTable: UITableView! Var pending request: FBCAF? Var pendingLoginForSlot: Int! Var User ID: String? Bridesmaid swipeGesture: viewDidLoad () function bool = false override {super.viewDidLoad () usersTable.delegate = self usersTable.dataSource = self self.pendingLoginForSlot = -1 self.usersTable.tableFooterView = UIView (frame: CGRectZero)}  

I want to function in this view controller starts and fully didFinishLaunchingWithOptions when I like apps representative after defining the sequence controller your application delegate:

  var VC: ViewController = ViewController ()  

VC.usersTable no Is equal. But when I do my function after viewDidLoad everything is working fine.

Then how can I activate the application representative from within (such as those that are defined in the logging tableview) and such properties are available that viewDidLoad expect the same results to define I load it via a tab barcontroller after loading a regular manner VC?

Thank you!


No comments:

Post a Comment