Objective C: store variables accessible in all views

前端 未结 2 1397
失恋的感觉
失恋的感觉 2020-12-18 17:12

Greetings,

I\'m trying to write my first iPhone app. I have the need to be able to access data in all views. The data is stored when the user logs in and needs to be

2条回答
  •  星月不相逢
    2020-12-18 17:42

    I don't know what you mean with "static class", but what you want is a singleton. See this question for various methods on how to set one up.

提交回复
热议问题