I\'m building an app that will list all of a user instagram followers. Instagram API returns only around 50 followers as JSON array and a link to the next 50 and so on till all
As matt said, registerDefaults
was created for this purpose.
However, if you don't want to use registerDefaults
, then I'd suggest using integerForKey
and setInteger
instead of using objectForKey
. integerForKey
defaults to 0. So if you use it, the HighScore will default to 0 until it is set.
NSUserDefaults has a registerDefaults:
method for this purpose. Use it (in application:didFinishLaunchingWithOptions:
).