We just added Three20 to our existing project and are having some trouble to get along with its routing system.
What we have right now is a transition from a view controller A
to a view controller B
, having A
as the delegate of view controller B
, to allow me to trigger an action on A when a specific action occurs on B
.
Let's say I have a button on A that calls B like the following:
- (IBAction)buttonAction:(id)sender {
id bvc = [[[BViewController alloc] initWithDelegate:self] autorelease];
[self.navigationController pushViewController:bvc animated:YES];
}
Now, instead of the button, we want to use a link in a TTStyledText
for the same purpose. The problem is we don't know how to pass the A
view controller instance to B
's initWithDelegate:
method. We discovered how to pass strings as parameters for the TTURLMap
, but that won't work for us.
Maybe we need a more thorough design change here. Any thoughts?