The scenario:
ViewControllerA.m sets up the ASIHTTPRequest with ViewControllerB.m being the delegate, passes it to ServerIO.m to start the ASIHTTPRequest, and ViewControllerA pushes view controller to ViewControllerB.
However, the delegate methods are not being called. Here's the code:
ViewControllerA.m
ViewControllerB *drc = [[ViewControllerB alloc] initWithRequestID:requestID];
[self.navigationController pushViewController:drc animated:YES];
[ServerIO findRooms:[NSDictionary dictionaryWithObjectsAndKeys:drc, @"delegateController", nil]];`
ServerIO.m
[request setDelegate:[parameters objectForKey:@"delegateController"]]; //I checked the delegate here and it's valid.
I have already added in ViewControllerB.m, but the delegate methods are not being called there. Any ideas?