Will my APP get approved if it does not has data persistence? and I keep the model in the appDelegate

StackOverflow https://stackoverflow.com/questions/22916890

  •  29-06-2023
  •  | 
  •  

Question

Good day, everyone, I'm new to iOS development, programming in general actually, quick question, will my APP get approved if it does not has data persistence?

It's a quick and small text manipulation kind of APP, it reads the data, process it, then done with it (send out the results via email), I just don't see the needs of doing persistence, and also, the model is basically being put in the appDelegate, for each tabBarController to work with. Everything works just the way I expected, not sure if that's (no data persistence + use appDelegate to keep shared model) really and could get my APP rejected?

Thanks for your time answering my questions :)

Was it helpful?

Solution

The short answer: No. Your app will not get rejected.

Apps that's get rejected are usually violating something serious, like consuming to much CPU, calling Apples private APIs, responding to user input in an unpredictable manner or simply crashing etc - not just code design issues.

It sounds however like you should consider moving your model some place else, for the sake of ease the maintenance of your code.

Consider creating a modelClass that implements the Singleton pattern. The purpose and responsibility of the AppDelegate should be limited to starting up your app and controlling its lifecycle

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top