My app is setup where there are multiple view controllers linked to
the delegate. I have the main authentication setup to the delegate. I
have no problems authenticating the user from my loginViewController
controller however when the app reloads homeViewController says that
the user is not authenticated whilst the delegate says it is. Somehow
the controllers are not speaking to each other. In my
homeViewContoller.m file I include this code:
BOOL isSignedIn = [appDelegate.mAuth canAuthorize];
if(isSignedIn == true){
NSLog(@"signedin");
} else {
NSLog(@"notsignedin");
}
and it returns not signed in. If I use the same code in the delegate
(on app load) then it returns signed in. Any ideas?
Thanks.