Hi forum,
I wanted to know how you can set a view controller as another view controllers delegate? If you look at the screen shot below i have a series of tableviewcontrollers (each have their own custom class) and they segue from one to the other. The first one titled FORMATION has a method which retrieves data from a PLIST file. The THIRD view controller needs the same data. Now i know I can call the same method and just retrieve it, but i wanted to see if i can do this via delegates. I do not know how to set "FORMATION TABLEVIEW CONTROLLER" as the delegate.
I cannot do it in the "
" because i segue from the 1st to the 2nd tableview controller not to the third.
would i have to create an instance of the "Plays TABLE VIEW CONTROLLER" and then set the delegate that way?
please help
I wanted to know how you can set a view controller as another view controllers delegate? If you look at the screen shot below i have a series of tableviewcontrollers (each have their own custom class) and they segue from one to the other. The first one titled FORMATION has a method which retrieves data from a PLIST file. The THIRD view controller needs the same data. Now i know I can call the same method and just retrieve it, but i wanted to see if i can do this via delegates. I do not know how to set "FORMATION TABLEVIEW CONTROLLER" as the delegate.
I cannot do it in the "
Code:
(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
would i have to create an instance of the "Plays TABLE VIEW CONTROLLER" and then set the delegate that way?
please help
Last edited by a moderator: