Post

Replies

Boosts

Views

Activity

Reply to Import Existing SQLite Database
I just drag and dropped the Database into the project folder. Here is the call of the function Read from the Class DBHelper class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {     @IBOutlet weak var personTable: UITableView!          let cellReuseIdentifier = "cell"          var db:DBHelper = DBHelper()          var persons:[Person] = []          override func viewDidLoad() {         super.viewDidLoad()                  personTable.register(UITableViewCell.self, forCellReuseIdentifier: cellReuseIdentifier)         personTable.delegate = self         personTable.dataSource = self                           persons = db.read()     }
Topic: App & System Services SubTopic: Core OS Tags:
Jan ’21