I need some help on how to reference from a class to get the NSString contained in that class. Reason for so is that I wish to store all the URLs that I’m using into a class so that in the event whereby there is a change in URL etc, I could just change it in one file instead of changing it one by one in all the classes.
Any idea where should I start??Firstly, should I create NSObject or NSDocument to store the URLs?Then, do I actually have to create pushController to push the string content to each of the other classes?
Sorry if my question sounds messy, I’m quite lost. Thank you in advance 🙂
Just create NSObject class and then place your URL in it and then access it and use it where you want.
in h file
in .m
in Prefix.pch just import it
#import "Config.h"and use it in the class where you want to use