Where's the best place to store constants in an iOS app?

后端 未结 5 1584
忘了有多久
忘了有多久 2020-12-22 23:56

I\'m developing an app just now that fetches resources from a JSON API.

all of the resources have the same base URL:

http://api.mysite.com/resources.         


        
5条回答
  •  心在旅途
    2020-12-23 00:38

    I would create a singleton or use the AppDelegate and put the constants there.

提交回复
热议问题