multiple Alamofire requests

前端 未结 2 1758
攒了一身酷
攒了一身酷 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.

提交回复
热议问题