0

I've struggled for 6 hrs trying to pass a mutable string object from a view controller to the AppDelegate. I've seen a lot of comments on passing data between view controllers and have worked some of those tutorials, but can't seem to figure out how to pass data to the AppDelegate.

Thanks for any ideas

1

1 Answer 1

2
MyApplication *appDelegate = (MyApplication *)[[UIApplication sharedApplication] delegate];
[appDelegate appDelegateFunction:myString];

found on the SO question here

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks Jason. The link provides more info than I found before, so maybe I can figure it out now. I tried this method for 3 hrs last night but guess I'm getting mixed up on where the object is declared and allocated. I'll try again with the help of this link

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.