My goal is to allow the user to set a new home page, and it does so by changing the default URL (Google) and replacing it using webView.request.URL.absoluteString
The problem is that it doesn't stay there when you boot up the app again after closing it.
So, how am I able to take that string and write it so that it is still there when you start the app, and if it isn't there and hasn't been set, use the default Google URL?
Good job, I know that. The problem was that I don't know how to use them.
However, I was able to make a somewhat stable version using a mediocre tutorial I found on some website. All is well for now at least.
In general, people on these boards take a dim view of "How do I do <some task which is well-documented and for which there are lots of examples available>?" type questions.
If you read the NSUserDefaults class reference, and read it again, and still can't understand what it's telling you, then post specific questions. "The docs say to do X, but when I try that, I get error Y" or even "Yhe docs say X, but I just don't understand what they are describing. What does X mean, and how do I use it?"
Those questions indicate that you're trying, and have specific things you need help with. Your question comes off as a "please spoon-feed me the answers because I am too lazy to do the work" request, which is irritating. That might not be your intent, but it IS the way it appears.
You'll get a whole lot more help if you try on your own first, and then ask for help if you have problems.
Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.
In general, people on these boards take a dim view of "How do I do <some task which is well-documented and for which there are lots of examples available>?" type questions.
If you read the NSUserDefaults class reference, and read it again, and still can't understand what it's telling you, then post specific questions. "The docs say to do X, but when I try that, I get error Y" or even "Yhe docs say X, but I just don't understand what they are describing. What does X mean, and how do I use it?"
Those questions indicate that you're trying, and have specific things you need help with. Your question comes off as a "please spoon-feed me the answers because I am too lazy to do the work" request, which is irritating. That might not be your intent, but it IS the way it appears.
You'll get a whole lot more help if you try on your own first, and then ask for help if you have problems.
Believe me, I had been trying for hours. The specifics part, however, I probably could have been more intuitive about. I was able to figure it out by myself though, but thanks =)