I am working on feedback kind of iPhone app. Where I am getting stuck for getting values from other class. Suppose I have three view controller classes "Class-A", "Class-B" and "Class-C". And I have created delegate for class B and C.
Initially my root is Class-A. So from Class-A, I am presenting Class-B and by using class B.delegate = self, I am calling Class-B delegate method in Class-A. And also there is no connection between Class-B and Class-C. So is it possible that if I will come from Class-C to Class-A then same Class-B delegate method will invoke again?
A method that I want to invoke in Class-A is -
-(void)saveAllVisitOptions:(SignIn *)signIn
{
Store *store1 = [[Store alloc] init];
store1.signINN =[[SignIn alloc] init];
store1.signINN = signIn;
[resultArray replaceObjectAtIndex:indexValue withObject:store1];
[Util setArrayPreference:resultArray forKey:@"Store"];
}
So if I will use singleton for this above method so will it work properly? I have searched all over but unable to find solution for that.