I want to use coldfusion web query results to populate a UITableView in iOS. The query results come back as a string and I guess I need to convert them to NSArray or NSDictionary...
Thanks, Phill
I want to use coldfusion web query results to populate a UITableView in iOS. The query results come back as a string and I guess I need to convert them to NSArray or NSDictionary...
Thanks, Phill
All you need to is implement the UITableViewDataSource
protocol, and hook the implementation up to the table view's dataSource
outlet. So you get your coldfusion results, then tell the table view to reload. Look at the documentation for the protocol to see which methods you need to implement.
Well, it depends on what format the results come back as. If it's XML, you'll want to parse the XML, keep the results in some sort of data object. Then use your UITableViewController's cellForRowAtIndexPath method to access the right result and display it.
Take a look at the SeismicXML sample code. I think it will go a long way to getting you where you want to go on this:
https://developer.apple.com/library/ios/#samplecode/SeismicXML/Introduction/Intro.html