Passing variables through classes in Objective-C
问题 In my scenario I have 2 view controllers, one tied to the main view and one that is connected to the first one as a subview. Now let's say that my App Delegate class wants to pass a string to the subview controller. What is the best practice to achieve this? If I wanted to pass it to the 1st controller i could just say something like [self.firstController getStringInCustomFunction:[NSString stringWithFormat:@"200%d", 9]]; Also keep in mind that this call might have to be asynchronous. Coming