I am using SQLite3 to store data in my Tab bar application, I want to know where is better place to open and close DB.
1. open in didFinishLaunchingWithOptions and close in dealloc of app
2. open viewDidLoad and close in viewDidUnLoad of every view
1. open in didFinishLaunchingWithOptions and close in dealloc of app
2. open viewDidLoad and close in viewDidUnLoad of every view