How to preserve data in UITableview between launches [closed] - ios

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm building a chat app. Now I know how to create a chat session, but I want to know how to preserve the data of chat history between launches.
Anyone could help me with this?

Work out a data model that can be expressed as a .plist (dictionary, array, string, number, data, date) and keep it in NSUserDefaults.

Use Core Data to mimic the data model coming in through the chat, you can then store all chat objects in core data as they are created and load them from core data on app launch.

Related

how to open create event screen in calendar app with populated data in swift? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have tried to search but most of the answer like in here is to directly save the event to calendar.
I want just to open a calendar app with populated data like the image below. so the user can modify the data first before adding a new event to the calendar
I want to automatically populate it with title, start time, end time
how to do that ?
there is a similar thread in here but in Objective-C , I can't read it unfortunately :(

How can I make a chat app with nativeScript? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I need to implement a chat into my app and im not sure on what to use and how. I don't know what is required for creating a chat, do I need to use some special stuff or is it enough with posting the messages to a database and then the other user retrieve that message?
You can use Firebase MBaaS with NativeScript, to make a chat app.
Or you can also take another approach and use QuickBlox, Parley, Applozic, Connectycube, etc.

Swift data caching - best practice [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I have simple TableViewController with customers. Every cell has photo, name and phone number. I want to cache this information. So when you will be offline or has slow connection, you will see information from last refresh until data refresh again. Refresh will start every time you enter this screen. I will have more screens, where I will want to cache different informations. I want to ask you about best practice of caching in iOS.
My idea is to use CoreData with Fetched result controller. Is it good idea or not?
if it's limited data you need to cache, you can also consider NSUserDefaults to read - write and delete.

Building app -- need info on viewing other users playlists [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am currently building an app and would like the option of having users view other users playlists. Is this possible?
Of course this is possible. All this data would be in a database, and you would write stored procedures that would fall in a REST API that you would call from your app. You would need to do the filtering of said stored procedure to show users any kind of data you want (if you only want to show 'friends' playlists, or 'people around you'..etc). Remember, it's just all data. Nothing more. You format the data to look nice, but it's still just data.

Parse replaces Core Data? iOS [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I am developing an app where I am going to use NSUserDefaults to store some profile variables (name, picture, etc), I think.
I think I need to store some long huge lists of values for each user and I read about Parse and Core Data. What is the best? Can Parse replace Core Data?
What is useful on this case? Both?
Thanks in advance
Parse will store your data on their infrastructure on the cloud. You can enable Parse object caching to keep that data for offline use as well. For most apps I build, I avoid using CoreData (although Parse may be internally using some for of local store, could be CoreData) and use Parse explicitly with caching.

Resources