Posts

Post not yet marked as solved
0 Replies
254 Views
Hi all, Is there a method which would allow a developer to uniquely identify a single contact across all synced iCloud devices? Specifically, if I had two phones signed into the same iCloud account with my app installed on both, can I reliably fetch and update the same synced contact on both devices? The documentation - https://developer.apple.com/documentation/contacts/cncontact/1403103-identifier states that a CNContact Identifier is unique to a device, which I confirmed.
Posted
by ctycnmvt.
Last updated
.
Post not yet marked as solved
2 Replies
413 Views
Hey all,I'm working on a project which includes a large collection of objects to be displayed to the user in a table view. I decided to store data on my objects in a JSON file, but am struggling when it comes to various subclassed objects.For example, all objects are sublclassed from Car, and can be any number of different models (each with different properties). Is it reasonable to think that trying to decode one large JSON file with many Car subclasses in it is even worth the struggle of setting up a proper decoder?To those curious, here's a simplified structure of my JSON file, where "allModels" is an array containing objects with unique types (the name property correlates to the subclass name in my code), and an array of objects which are all the type declared in their respective objects. I essentially have a heterogeneous array of homogeneous objects.{ "name": "All Cars", "allModels": [ { "name": "Chevy", "IndividualCars": [ { "color": "blue", "wheels": 4 }, { "color": "red", "wheels": 4 } ] }, { "name": "Honda", "IndividualCars": [ { "color": "blue", "wheels": 4, "hasHondaThing": true }, { "color": "red", "wheels": 4, "hasHondaThing": false } ] } ] }Any insight would be much appreciated!-Reece
Posted
by ctycnmvt.
Last updated
.
Post marked as solved
3 Replies
419 Views
Hey all,Apologies for the intro-level question.What is the best way to structure and save lots of information in a heirarchy, ex: storing lots of car models which are all cars, and lots of bike models which are all bikes? Each car would have a many properties (make, model, weight, speed, wheel size, etc), and there will be many cars. Eventually I want to show a UITableView of car names and when a user taps on a name a modal is presented that shows more data.Even quick terms to google would be a huge help.
Posted
by ctycnmvt.
Last updated
.