I got three view controllers, A, B and C.
A --modal--> B ---push --> C
How can I pass data from C --> A? I have tried using protocols and delegate. However my delegate method in A is never called.
I got three view controllers, A, B and C.
A --modal--> B ---push --> C
How can I pass data from C --> A? I have tried using protocols and delegate. However my delegate method in A is never called.
 
    
     
    
    Or you can use your AppDelegate to hold a reference for A, and than work from there on.
 
    
    You can store data in session (Create singleton object) and access it whatever you wish
@interface Session : NSObject
+(Session*) session;
@property (nonatomic) id data_to_access;
@end
@implementation Session
+(Session *)session
{
    static Session *sharedSingleton;
    @synchronized(self)
    {
        if (!sharedSingleton)
            sharedSingleton = [[Session alloc] init];
        return sharedSingleton;
    }
}
@end
