ios - Best way to handle a JSON call and use it's information in all views -


i have api serving json information needed put app, , serve texts , news needed views in app.

this information , json never big enough need make multiple calls or paginate, information might changed in future since it's app event, , minimum stuff added information like, sponsors logo, , stuff that.

i wondering, best way handle this? make api call on appdelegate or something, save local , make 1 api call per day "update" local file?

also, technically speaking, how handle information views?

keep reading local file everytime view loaded?

implement singleton class holds data inside proper data structure(s). need download json in root view controller , display activity indicator user. in every view controller can access singleton class object asking data relative controller.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -