Whether all apps require the database Connection?
I am creating an app which doesn't take any data from the database. The content is not dynamic (ie.. it is static conten开发者_开发技巧t ) and I am using 3 View, in each view I am displaying some content. That's why I am not using any database connectivity.
Whether all apps need DATABASE. Whether static data is accepted by APPLE PEOPLE.
You certainly don't need a database, no. Store your data however you want :)
Hoewver, unless it's only a fairly small set of data, a database might perform better? It entirely depends on what you app is going to be doing.
A great alternative to using a database, or a remote web service, is .plist files. They have a number of advantages, for instance they are loaded into memory very easily (2 lines):
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"filename" ofType:@"plist"];
NSArray *dataArray = [[NSArray arrayWithContentsOfFile:filePath] retain];
(or NSDictionary, if you're loading a dictionary instead of an array).
They are also edited easily in Xcode or using "Property List Editor" which is included with Xcode.
The downside of them is that the whole plist file is loaded into memory at once. If your plist file is larger than... say 500kb? I would consider moving to a db.
精彩评论