I am learning objective-c and I get some trouble with delegates.
In a test application, i have a viewcontroller having a IUbutton, and another UITableViewcontroller. I want to make the TableViewController appears when I click the button.
the problem that the window object is not identified in this ViewController.
[self.window addSubview:viewController.view]; this line shows errors.
I think I should delegate the appdelagate to my viewcontroller ? how to do ?
you cant access the window by self you need an object of appDelegate class
so code like this
now you can access the window,