Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Nekbeth

macrumors regular
Original poster
Feb 20, 2011
101
0
Vatican City
Good day, I want to set a delegate to a controller but they are not connected or segue to another. Imagine a tabBar were you open different controller on each tab. I like to pass an object from tab 4 to tab 1, controller in tab 4 already has a protocol with the it's delegate passing the object. While controller in tab 1 declares this delegate and uses that method to pass the object... The problem is that I can't set it's delegate to self like I did with segues. Is there another way?

I have try (with no success) :

Code:
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard_iPhone" bundle:nil];
    wallController *wallCon = [storyboard instantiateViewControllerWithIdentifier:@"wallID"];
    wallCon.delegateWall = self;


Thank you
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.