multiple Alamofire requests

前端 未结 2 1759
攒了一身酷
攒了一身酷 2021-01-29 14:05

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

相关标签:
2条回答
  • 2021-01-29 14:26

    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.

    0 讨论(0)
  • 2021-01-29 14:40

    NSUserDefaults has a registerDefaults: method for this purpose. Use it (in application:didFinishLaunchingWithOptions:).

    0 讨论(0)
提交回复
热议问题