I would like to convert a timestamp posted in firebase to readable data. I am able to read the timestamp, but not able to convert it, or append it to an array. This is my progress:

 

The print(orderDate) statement prints correctly:  …

see this first : https://developer.apple.com/documentation/foundation/nskeyedunarchiver/2963379-unarchivedobject   if I were to try to call this function:

what is Swift expecting to see where it says : [AnyClass]    ?   currently I have :

(where BKControlProps is a class type) … and that’s not right.…

Hi there, i have following json data which i am getting from server:

The json object is strored in an boject like this:

  The json data has two keys and i want to work with the first key that is “exams” key.…

I have a table view on which are listed some contacts. When I select one of the contacts, I want to show its details using the CNContactViewController. Here’s the tableView(_:didDeselectRowAt:) implementation for that situation:   func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {   let…

Hi programmers can i set an if statement to a JSONDictionary so i can stable conditions to my JSon income-data?   what i’m trying to do in code wouldve something like this   struct Blog: Decodable {                 let Response: String                 let articles: [Article]…

Hi, I’m using a UITableViewController to sellect multiple cells. tableView.allowsMultipleSelection = true tableView.allowsSelectionDuringEditing = true   This works fine until the user makes a swipe action. A the moment the swipe action start all TableViewCells get deselected. Is there a way to keep selection state?…