Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

KTK1990

macrumors 6502
Original poster
Dec 26, 2008
349
42
Hello,

I am creating an app kind of like the contacts app. It will show a table of data based upon loaded .plist files organized in SQLite, and when you click on the person's name it will show a detailed view of their info.

I can get the initial contact list to show up just fine and it populates correctly, but when I click on a name however, all I see are two blank tables that I set up (Contact info, and links).

In my NameDB.swift file there is this snippet of code referencing detail view.
Code:
    func getItemDetail(_ selectedUuid:String) -> Dictionary<String, AnyObject?> {
        var queryResult = [String:AnyObject?]()
        let query = items.select(IDnumb, firstname, lastname, itembrand, hiremonth, hireyear, managername, division, officenumb, officestate, officeaddress, CompanywebpageURL, MessagingURL, emailAddress)
                         .filter(IDnumb == selectedIDnumb)
and here is my code trying to load the data in the detail view tables http://pastebin.com/fMVK69Y9 .
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.