Within a class method, the keyword self
doesn't refer to an instance of that class type, but rather the actual class
instance, as in the result of [RemoteConfiguration class]
.
Class instances like this do not have instance variables (at least not the ones you're declaring, but rather the Class
instance variables, most notably the isa
instance variable).
If you wish to have a single static instance of RemoteConfiguration
you can declare the instance variables as static
variables within the .m
file, or use something like the singleton pattern to keep an instance handy.