I'm trying to retrieve a line of code from my server and implement it in my NSUserDefaults
.
Right now, this is what my appdelegate.m
looks like:
NSDictionary* defaults = @{@"server_addr": @"http://156.92.15.802"};
[[NSUserDefaults standardUserDefaults] registerDefaults:defaults];
The http://156.92.15.802
url is the part that I need to GET from my server.
If my server has a file named Example.txt on it and within that file is a single line that like http://156.92.15.802
, how can I use AFNetworking to check the file on my server and then add it to the NSUserDefaults
?