Data access class in iPhone/iPad
N开发者_如何学运维ow I have a few classes that work with database. I wonder would it be better to have one (Data Access Layer, singleton) class that contain CRUD methods, database connection logic etc?
yes, you could use a singleton for that but why not use core data instead?
精彩评论