Is it good practice to use AppDelegate for data manipulation and Handling?

后端 未结 3 1248
不思量自难忘°
不思量自难忘° 2020-12-02 02:33

I am making an object of AppDelegate and using it throughout my program, and I have declared all setters and getters, and also insert, select, delete, update qu

3条回答
  •  一个人的身影
    2020-12-02 03:10

    It's all about complexity and your feelings. You must like your solution ;-)

    I obviously do this in another way - I've got singleton, which does handle all my common database things. I'm trying to keep application delegate as simple as possible. It's better for code sharing, etc.

提交回复
热议问题